aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFred Pierresteguy1994-02-18 11:03:38 +0000
committerFred Pierresteguy1994-02-18 11:03:38 +0000
commitb3eaa88e046027f4846074d6994cd8312bae3e69 (patch)
tree5367ad54dbd968e4a9898252f4a4d860ee10dc34 /src
parent1b975aff448ce848e6346cfcf8fd36c1ca4e4e04 (diff)
downloademacs-b3eaa88e046027f4846074d6994cd8312bae3e69.tar.gz
emacs-b3eaa88e046027f4846074d6994cd8312bae3e69.zip
(popup_selection_callback): Clean up code. Remove code in #if 0 directive.
(popup_down_callback): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/xmenu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 19bc213c3fa..dc164117b47 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -681,11 +681,6 @@ popup_selection_callback (widget, id, client_data)
681 LWLIB_ID id; 681 LWLIB_ID id;
682 XtPointer client_data; 682 XtPointer client_data;
683{ 683{
684#if 0
685 last_popup_selection_callback_id = id;
686 menubar_selection_callback (widget, id, client_data);
687 /* lw_destroy_all_widgets() will be called from popup_down_callback() */
688#endif
689 VOID_TO_LISP (menu_item_selection, client_data); 684 VOID_TO_LISP (menu_item_selection, client_data);
690} 685}
691 686
@@ -695,18 +690,9 @@ popup_down_callback (widget, id, client_data)
695 LWLIB_ID id; 690 LWLIB_ID id;
696 XtPointer client_data; 691 XtPointer client_data;
697{ 692{
698#if 0
699 if (popup_menu_up_p == 0) abort ();
700 popup_menu_up_p--;
701 /* if this isn't called immediately after the selection callback, then
702 there wasn't a menu selection. */
703 if (id != last_popup_selection_callback_id)
704 menubar_selection_callback (widget, id, (XtPointer) -1);
705#endif
706 BLOCK_INPUT; 693 BLOCK_INPUT;
707 lw_destroy_all_widgets (id); 694 lw_destroy_all_widgets (id);
708 UNBLOCK_INPUT; 695 UNBLOCK_INPUT;
709/* ungcpro_popup_callbacks (make_number (id)); */
710} 696}
711 697
712/* This recursively calls free_widget_value() on the tree of widgets. 698/* This recursively calls free_widget_value() on the tree of widgets.