Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/gtk4/dw.c Mon Mar 29 23:15:43 2021 +0000 +++ b/gtk4/dw.c Tue Mar 30 08:28:35 2021 +0000 @@ -11071,9 +11071,9 @@ case DW_FEATURE_HTML_RESULT: #endif case DW_FEATURE_NOTIFICATION: - case DW_FEATURE_CONTAINER_STRIPE: case DW_FEATURE_UTF8_UNICODE: case DW_FEATURE_MLE_WORD_WRAP: + case DW_FEATURE_TREE: return DW_FEATURE_ENABLED; default: return DW_FEATURE_UNSUPPORTED; @@ -11103,9 +11103,9 @@ case DW_FEATURE_HTML_RESULT: #endif case DW_FEATURE_NOTIFICATION: - case DW_FEATURE_CONTAINER_STRIPE: case DW_FEATURE_UTF8_UNICODE: case DW_FEATURE_MLE_WORD_WRAP: + case DW_FEATURE_TREE: return DW_ERROR_GENERAL; /* These features are supported and configurable */ default: