comparison mac/dw.m @ 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 e0c63f2cbdbf
children 3b59cbd26fab
comparison
equal deleted inserted replaced
2409:2ab3e88e5d68 2410:0286ac44d347
13154 case DW_FEATURE_HTML: 13154 case DW_FEATURE_HTML:
13155 case DW_FEATURE_HTML_RESULT: 13155 case DW_FEATURE_HTML_RESULT:
13156 case DW_FEATURE_CONTAINER_STRIPE: 13156 case DW_FEATURE_CONTAINER_STRIPE:
13157 case DW_FEATURE_MLE_WORD_WRAP: 13157 case DW_FEATURE_MLE_WORD_WRAP:
13158 case DW_FEATURE_UTF8_UNICODE: 13158 case DW_FEATURE_UTF8_UNICODE:
13159 case DW_FEATURE_TREE:
13159 return DW_FEATURE_ENABLED; 13160 return DW_FEATURE_ENABLED;
13160 #ifdef BUILDING_FOR_MOJAVE 13161 #ifdef BUILDING_FOR_MOJAVE
13161 case DW_FEATURE_DARK_MODE: 13162 case DW_FEATURE_DARK_MODE:
13162 { 13163 {
13163 if(@available(macOS 10.14, *)) 13164 if(@available(macOS 10.14, *))
13216 case DW_FEATURE_HTML: 13217 case DW_FEATURE_HTML:
13217 case DW_FEATURE_HTML_RESULT: 13218 case DW_FEATURE_HTML_RESULT:
13218 case DW_FEATURE_CONTAINER_STRIPE: 13219 case DW_FEATURE_CONTAINER_STRIPE:
13219 case DW_FEATURE_MLE_WORD_WRAP: 13220 case DW_FEATURE_MLE_WORD_WRAP:
13220 case DW_FEATURE_UTF8_UNICODE: 13221 case DW_FEATURE_UTF8_UNICODE:
13222 case DW_FEATURE_TREE:
13221 return DW_ERROR_GENERAL; 13223 return DW_ERROR_GENERAL;
13222 /* These features are supported and configurable */ 13224 /* These features are supported and configurable */
13223 #ifdef BUILDING_FOR_MOJAVE 13225 #ifdef BUILDING_FOR_MOJAVE
13224 case DW_FEATURE_DARK_MODE: 13226 case DW_FEATURE_DARK_MODE:
13225 { 13227 {