Mercurial > dwindows
comparison gtk3/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 | 77686ad495ba |
children | ed955edc7204 |
comparison
equal
deleted
inserted
replaced
2409:2ab3e88e5d68 | 2410:0286ac44d347 |
---|---|
12636 case DW_FEATURE_CONTAINER_STRIPE: | 12636 case DW_FEATURE_CONTAINER_STRIPE: |
12637 #endif | 12637 #endif |
12638 case DW_FEATURE_TASK_BAR: | 12638 case DW_FEATURE_TASK_BAR: |
12639 case DW_FEATURE_UTF8_UNICODE: | 12639 case DW_FEATURE_UTF8_UNICODE: |
12640 case DW_FEATURE_MLE_WORD_WRAP: | 12640 case DW_FEATURE_MLE_WORD_WRAP: |
12641 case DW_FEATURE_TREE: | |
12641 return DW_FEATURE_ENABLED; | 12642 return DW_FEATURE_ENABLED; |
12642 default: | 12643 default: |
12643 return DW_FEATURE_UNSUPPORTED; | 12644 return DW_FEATURE_UNSUPPORTED; |
12644 } | 12645 } |
12645 } | 12646 } |
12678 case DW_FEATURE_CONTAINER_STRIPE: | 12679 case DW_FEATURE_CONTAINER_STRIPE: |
12679 #endif | 12680 #endif |
12680 case DW_FEATURE_TASK_BAR: | 12681 case DW_FEATURE_TASK_BAR: |
12681 case DW_FEATURE_UTF8_UNICODE: | 12682 case DW_FEATURE_UTF8_UNICODE: |
12682 case DW_FEATURE_MLE_WORD_WRAP: | 12683 case DW_FEATURE_MLE_WORD_WRAP: |
12684 case DW_FEATURE_TREE: | |
12683 return DW_ERROR_GENERAL; | 12685 return DW_ERROR_GENERAL; |
12684 /* These features are supported and configurable */ | 12686 /* These features are supported and configurable */ |
12685 default: | 12687 default: |
12686 return DW_FEATURE_UNSUPPORTED; | 12688 return DW_FEATURE_UNSUPPORTED; |
12687 } | 12689 } |