aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-02-12 10:05:00 +0000
committerRichard M. Stallman1996-02-12 10:05:00 +0000
commitf9655c60abc7a9f9da0c3ba6b73f24883ec8e8e9 (patch)
treee7f65acfeb74916388302db9a6097375e9dee91a /src
parent0fded513b962b00fab277902d7d4ff30399818fb (diff)
downloademacs-f9655c60abc7a9f9da0c3ba6b73f24883ec8e8e9.tar.gz
emacs-f9655c60abc7a9f9da0c3ba6b73f24883ec8e8e9.zip
(xmalloc_widget_value): Define only if USE_X_TOOLKIT.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 9257cf792f3..7a63229e152 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -116,20 +116,6 @@ static void single_keymap_panes ();
116static void list_of_panes (); 116static void list_of_panes ();
117static void list_of_items (); 117static void list_of_items ();
118 118
119/* Allocate a widget_value, blocking input. */
120
121widget_value *
122xmalloc_widget_value ()
123{
124 widget_value *value;
125
126 BLOCK_INPUT;
127 value = malloc_widget_value ();
128 UNBLOCK_INPUT;
129
130 return value;
131}
132
133/* This holds a Lisp vector that holds the results of decoding 119/* This holds a Lisp vector that holds the results of decoding
134 the keymaps or alist-of-alists that specify a menu. 120 the keymaps or alist-of-alists that specify a menu.
135 121
@@ -1307,6 +1293,19 @@ popup_deactivate_callback (widget, id, client_data)
1307 popup_activated_flag = 0; 1293 popup_activated_flag = 0;
1308} 1294}
1309 1295
1296/* Allocate a widget_value, blocking input. */
1297
1298widget_value *
1299xmalloc_widget_value ()
1300{
1301 widget_value *value;
1302
1303 BLOCK_INPUT;
1304 value = malloc_widget_value ();
1305 UNBLOCK_INPUT;
1306
1307 return value;
1308}
1310 1309
1311/* This recursively calls free_widget_value on the tree of widgets. 1310/* This recursively calls free_widget_value on the tree of widgets.
1312 It must free all data that was malloc'ed for these widget_values. 1311 It must free all data that was malloc'ed for these widget_values.