aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2014-06-04 07:20:11 +0400
committerDmitry Antipov2014-06-04 07:20:11 +0400
commit39ec03147e88bb7a12d2e42edfa0206f6b7d546b (patch)
tree0bf5f63a9a09240c0bfc987cea12a1e131dc682d
parent6348c9d718c322929b184fc17a778951345455d8 (diff)
downloademacs-39ec03147e88bb7a12d2e42edfa0206f6b7d546b.tar.gz
emacs-39ec03147e88bb7a12d2e42edfa0206f6b7d546b.zip
* lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit
fields conditionally.
-rw-r--r--lwlib/ChangeLog5
-rw-r--r--lwlib/lwlib-widget.h17
2 files changed, 15 insertions, 7 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index daf47ce4720..5a5d1e703fd 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,8 @@
12014-06-04 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * lwlib-widget.h (widget_value) [USE_X_TOOLKIT]: Use X toolkit
4 fields conditionally.
5
12014-06-03 Paul Eggert <eggert@cs.ucla.edu> 62014-06-03 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Do not require libXt-devel when building with gtk. 8 Do not require libXt-devel when building with gtk.
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
73 /* The type of a button. */ 73 /* The type of a button. */
74 enum button_type button_type; 74 enum button_type button_type;
75 75
76 /* Type of change (maintained by lw library). */
77 change_type change;
78
79 /* Type of this widget's change, but not counting the other widgets
80 found in the `next' field. */
81 change_type this_one_change;
82
83 /* Contents of the sub-widgets, also selected slot for checkbox. */ 76 /* Contents of the sub-widgets, also selected slot for checkbox. */
84 struct _widget_value *contents; 77 struct _widget_value *contents;
85 78
@@ -89,12 +82,22 @@ typedef struct _widget_value
89 /* Next one in the list. */ 82 /* Next one in the list. */
90 struct _widget_value *next; 83 struct _widget_value *next;
91 84
85#ifdef USE_X_TOOLKIT
86 /* Type of change (maintained by lw library). */
87 change_type change;
88
89 /* Type of this widget's change, but not counting the other widgets
90 found in the `next' field. */
91 change_type this_one_change;
92
92 /* Slot for the toolkit dependent part. Always initialize to NULL. */ 93 /* Slot for the toolkit dependent part. Always initialize to NULL. */
93 void *toolkit_data; 94 void *toolkit_data;
94 95
95 /* Whether we should free the toolkit data slot when freeing the 96 /* Whether we should free the toolkit data slot when freeing the
96 widget_value itself. */ 97 widget_value itself. */
97 bool free_toolkit_data; 98 bool free_toolkit_data;
99#endif
100
98} widget_value; 101} widget_value;
99 102
100#endif 103#endif