summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-widget.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2014-06-04 07:20:11 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2014-06-04 07:20:11 +0400
commit39ec03147e88bb7a12d2e42edfa0206f6b7d546b (patch)
tree0bf5f63a9a09240c0bfc987cea12a1e131dc682d /lwlib/lwlib-widget.h
parent6348c9d718c322929b184fc17a778951345455d8 (diff)
downloademacs-39ec03147e88bb7a12d2e42edfa0206f6b7d546b.tar.gz
* lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit
fields conditionally.
Diffstat (limited to 'lwlib/lwlib-widget.h')
-rw-r--r--lwlib/lwlib-widget.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/lwlib/lwlib-widget.h b/lwlib/lwlib-widget.h
index b5abb1af9fa..8901964ff55 100644
--- a/lwlib/lwlib-widget.h
+++ b/lwlib/lwlib-widget.h
@@ -73,13 +73,6 @@ typedef struct _widget_value
/* The type of a button. */
enum button_type button_type;
- /* Type of change (maintained by lw library). */
- change_type change;
-
- /* Type of this widget's change, but not counting the other widgets
- found in the `next' field. */
- change_type this_one_change;
-
/* Contents of the sub-widgets, also selected slot for checkbox. */
struct _widget_value *contents;
@@ -89,12 +82,22 @@ typedef struct _widget_value
/* Next one in the list. */
struct _widget_value *next;
+#ifdef USE_X_TOOLKIT
+ /* Type of change (maintained by lw library). */
+ change_type change;
+
+ /* Type of this widget's change, but not counting the other widgets
+ found in the `next' field. */
+ change_type this_one_change;
+
/* Slot for the toolkit dependent part. Always initialize to NULL. */
void *toolkit_data;
/* Whether we should free the toolkit data slot when freeing the
widget_value itself. */
bool free_toolkit_data;
+#endif
+
} widget_value;
#endif