Mercurial > dwindows
diff os2/dw.c @ 2284:3361ce6070ce
Add DW_FEATURE_TASK_BAR to the feature tests, for taskbar icon support.
Not having this earlier was probably an oversight, but added it because GTK4
removes the widget that allowed this support.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 03 Feb 2021 21:44:15 +0000 |
parents | 15347d28995a |
children | 5113afb0aea9 |
line wrap: on
line diff
--- a/os2/dw.c Wed Feb 03 20:55:51 2021 +0000 +++ b/os2/dw.c Wed Feb 03 21:44:15 2021 +0000 @@ -13860,6 +13860,12 @@ case DW_FEATURE_NOTEBOOK_STATUS_TEXT: case DW_FEATURE_MDI: return DW_FEATURE_ENABLED; + case DW_FEATURE_TASK_BAR: + { + if(hwndTrayServer) + return DW_ERROR_ENABLED; + return DW_FEATURE_UNSUPPORTED; + } default: return DW_FEATURE_UNSUPPORTED; } @@ -13891,6 +13897,12 @@ case DW_FEATURE_NOTEBOOK_STATUS_TEXT: case DW_FEATURE_MDI: return DW_ERROR_GENERAL; + case DW_FEATURE_TASK_BAR: + { + if(hwndTrayServer) + return DW_ERROR_GENERAL; + return DW_FEATURE_UNSUPPORTED; + } /* These features are supported and configurable */ default: return DW_FEATURE_UNSUPPORTED;