changeset 12141:9265a67ccf1a

(update_menu_bar): Run activate-menubar-hook and call recompute-lucid-menubar.
author Karl Heuer <kwzh@gnu.org>
date Fri, 09 Jun 1995 00:51:32 +0000
parents 75379a19c5d5
children 0131a61184ab
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Jun 09 00:12:29 1995 +0000
+++ b/src/xdisp.c	Fri Jun 09 00:51:32 1995 +0000
@@ -1262,6 +1262,12 @@
 	  if (save_match_data)
 	    record_unwind_protect (Fstore_match_data, Fmatch_data ());
 
+	  /* Run the Lucid hook.  */
+	  call1 (Vrun_hooks, Qactivate_menubar_hook);
+	  /* If it has changed current-menubar from previous value,
+	     really recompute the menubar from the value.  */
+	  if (! NILP (Vlucid_menu_bar_dirty_flag))
+	    call0 (Qrecompute_lucid_menubar);
 	  call1 (Vrun_hooks, Qmenu_bar_update_hook);
 	  current_buffer = XBUFFER (w->buffer);
 	  FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));