Mercurial > dwindows
comparison gtk/dw.c @ 2410:0286ac44d347
Add DW_FEATURE_TREE feature test, since iOS does not suppor tree.
Update dwtest to show a placeholder when missing the tree widget.
Remove DW_FEATURE_CONTAINER_STRIPE from GTK4. Apparently it is supported
with the GtkListBox widget and custom CSS, but it performs badly and is
unrecommended by the GTK development team. Finally add missing feature test
example code to the template source.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 30 Mar 2021 08:28:35 +0000 |
parents | fad0821cb953 |
children | fa976a5bc7bd |
comparison
equal
deleted
inserted
replaced
2409:2ab3e88e5d68 | 2410:0286ac44d347 |
---|---|
14005 case DW_FEATURE_TASK_BAR: | 14005 case DW_FEATURE_TASK_BAR: |
14006 #endif | 14006 #endif |
14007 case DW_FEATURE_CONTAINER_STRIPE: | 14007 case DW_FEATURE_CONTAINER_STRIPE: |
14008 case DW_FEATURE_UTF8_UNICODE: | 14008 case DW_FEATURE_UTF8_UNICODE: |
14009 case DW_FEATURE_MLE_WORD_WRAP: | 14009 case DW_FEATURE_MLE_WORD_WRAP: |
14010 case DW_FEATURE_TREE: | |
14010 return DW_FEATURE_ENABLED; | 14011 return DW_FEATURE_ENABLED; |
14011 default: | 14012 default: |
14012 return DW_FEATURE_UNSUPPORTED; | 14013 return DW_FEATURE_UNSUPPORTED; |
14013 } | 14014 } |
14014 } | 14015 } |
14044 case DW_FEATURE_TASK_BAR: | 14045 case DW_FEATURE_TASK_BAR: |
14045 #endif | 14046 #endif |
14046 case DW_FEATURE_CONTAINER_STRIPE: | 14047 case DW_FEATURE_CONTAINER_STRIPE: |
14047 case DW_FEATURE_UTF8_UNICODE: | 14048 case DW_FEATURE_UTF8_UNICODE: |
14048 case DW_FEATURE_MLE_WORD_WRAP: | 14049 case DW_FEATURE_MLE_WORD_WRAP: |
14050 case DW_FEATURE_TREE: | |
14049 return DW_ERROR_GENERAL; | 14051 return DW_ERROR_GENERAL; |
14050 /* These features are supported and configurable */ | 14052 /* These features are supported and configurable */ |
14051 default: | 14053 default: |
14052 return DW_FEATURE_UNSUPPORTED; | 14054 return DW_FEATURE_UNSUPPORTED; |
14053 } | 14055 } |