Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/gtk/dw.c Mon Mar 29 23:15:43 2021 +0000 +++ b/gtk/dw.c Tue Mar 30 08:28:35 2021 +0000 @@ -14007,6 +14007,7 @@ 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; @@ -14046,6 +14047,7 @@ 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: