summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-02-12 10:05:00 +0000
committerRichard M. Stallman <rms@gnu.org>1996-02-12 10:05:00 +0000
commit7e0182e3d6e2bee9562e573180a11e717085bd07 (patch)
tree6521e695e0e358d994288b1f9dbae2e712b6e2dc /src/xmenu.c
parentf489e06fd547934b0f587a9e342c34c4d22854df (diff)
downloademacs-7e0182e3d6e2bee9562e573180a11e717085bd07.tar.gz
(xmalloc_widget_value): Define only if USE_X_TOOLKIT.
Diffstat (limited to 'src/xmenu.c')
-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 ();
static void list_of_panes ();
static void list_of_items ();
-/* Allocate a widget_value, blocking input. */
-
-widget_value *
-xmalloc_widget_value ()
-{
- widget_value *value;
-
- BLOCK_INPUT;
- value = malloc_widget_value ();
- UNBLOCK_INPUT;
-
- return value;
-}
-
/* This holds a Lisp vector that holds the results of decoding
the keymaps or alist-of-alists that specify a menu.
@@ -1307,6 +1293,19 @@ popup_deactivate_callback (widget, id, client_data)
popup_activated_flag = 0;
}
+/* Allocate a widget_value, blocking input. */
+
+widget_value *
+xmalloc_widget_value ()
+{
+ widget_value *value;
+
+ BLOCK_INPUT;
+ value = malloc_widget_value ();
+ UNBLOCK_INPUT;
+
+ return value;
+}
/* This recursively calls free_widget_value on the tree of widgets.
It must free all data that was malloc'ed for these widget_values.