comparison dw.h @ 2203:12fb7f32f3a9

GTK: DW_INCLUDE_DEPRECATED should bring in DW_INCLUDE_DEPRECATED_RESOURCES. Can configure --with-deprecated to include our old resource system. Fix building with older GTK releases, until GTK2 support can be added.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 29 Nov 2020 04:17:58 +0000
parents c677d728e143
children b86ae2abb3b3
comparison
equal deleted inserted replaced
2202:c677d728e143 2203:12fb7f32f3a9
1345 long resource_max, *resource_id; 1345 long resource_max, *resource_id;
1346 char **resource_data; 1346 char **resource_data;
1347 } DWResources; 1347 } DWResources;
1348 1348
1349 /* As of Dynamic Windows 3.1 GResource is default if supported. 1349 /* As of Dynamic Windows 3.1 GResource is default if supported.
1350 * Defining DW_INCLUDE_DEPRECATED_RESOURCES at compile time will 1350 * Using --with-deprecated at configure time will include
1351 * include support for our old home brewed resource system. 1351 * support for our old home brewed resource system.
1352 * GLib 2.32 is required for GResource, so we automatically 1352 * GLib 2.32 is required for GResource, so we automatically
1353 * enable our old system if using an old Glib. 1353 * enable our old system if using an old Glib.
1354 * Test for GResource using: dwindows-config --gresource 1354 * Test for GResource using: dwindows-config --gresource
1355 */ 1355 */
1356 #ifndef DW_INCLUDE_DEPRECATED_RESOURCES 1356 #ifndef DW_INCLUDE_DEPRECATED_RESOURCES
1357 #if !GLIB_CHECK_VERSION(2,32,0) 1357 #if defined(DW_INCLUDE_DEPRECATED) || GTK_MAJOR_VERSION < 3 || !GLIB_CHECK_VERSION(2,32,0)
1358 #define DW_INCLUDE_DEPRECATED_RESOURCES 1 1358 #define DW_INCLUDE_DEPRECATED_RESOURCES 1
1359 #endif 1359 #endif
1360 #endif 1360 #endif
1361 1361
1362 /* Only reference our old style resources if required. */ 1362 /* Only reference our old style resources if required. */