Mercurial > dwindows
comparison gtk4/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 | 67f98f3e47f4 |
children | a80df2e7195d |
comparison
equal
deleted
inserted
replaced
2409:2ab3e88e5d68 | 2410:0286ac44d347 |
---|---|
11069 #ifdef USE_WEBKIT | 11069 #ifdef USE_WEBKIT |
11070 case DW_FEATURE_HTML: | 11070 case DW_FEATURE_HTML: |
11071 case DW_FEATURE_HTML_RESULT: | 11071 case DW_FEATURE_HTML_RESULT: |
11072 #endif | 11072 #endif |
11073 case DW_FEATURE_NOTIFICATION: | 11073 case DW_FEATURE_NOTIFICATION: |
11074 case DW_FEATURE_CONTAINER_STRIPE: | |
11075 case DW_FEATURE_UTF8_UNICODE: | 11074 case DW_FEATURE_UTF8_UNICODE: |
11076 case DW_FEATURE_MLE_WORD_WRAP: | 11075 case DW_FEATURE_MLE_WORD_WRAP: |
11076 case DW_FEATURE_TREE: | |
11077 return DW_FEATURE_ENABLED; | 11077 return DW_FEATURE_ENABLED; |
11078 default: | 11078 default: |
11079 return DW_FEATURE_UNSUPPORTED; | 11079 return DW_FEATURE_UNSUPPORTED; |
11080 } | 11080 } |
11081 } | 11081 } |
11101 #ifdef USE_WEBKIT | 11101 #ifdef USE_WEBKIT |
11102 case DW_FEATURE_HTML: | 11102 case DW_FEATURE_HTML: |
11103 case DW_FEATURE_HTML_RESULT: | 11103 case DW_FEATURE_HTML_RESULT: |
11104 #endif | 11104 #endif |
11105 case DW_FEATURE_NOTIFICATION: | 11105 case DW_FEATURE_NOTIFICATION: |
11106 case DW_FEATURE_CONTAINER_STRIPE: | |
11107 case DW_FEATURE_UTF8_UNICODE: | 11106 case DW_FEATURE_UTF8_UNICODE: |
11108 case DW_FEATURE_MLE_WORD_WRAP: | 11107 case DW_FEATURE_MLE_WORD_WRAP: |
11108 case DW_FEATURE_TREE: | |
11109 return DW_ERROR_GENERAL; | 11109 return DW_ERROR_GENERAL; |
11110 /* These features are supported and configurable */ | 11110 /* These features are supported and configurable */ |
11111 default: | 11111 default: |
11112 return DW_FEATURE_UNSUPPORTED; | 11112 return DW_FEATURE_UNSUPPORTED; |
11113 } | 11113 } |