Remove unused argument from set_frame_menubar (Bug#45759)
* src/w32menu.c (set_frame_menubar): * src/xmenu.c (set_frame_menubar): Remove unused argument. All callers updated.
This commit is contained in:
@@ -1707,7 +1707,7 @@ extern Lisp_Object gui_display_get_resource (Display_Info *,
|
||||
Lisp_Object component,
|
||||
Lisp_Object subclass);
|
||||
|
||||
extern void set_frame_menubar (struct frame *f, bool first_time, bool deep_p);
|
||||
extern void set_frame_menubar (struct frame *f, bool deep_p);
|
||||
extern void frame_set_mouse_pixel_position (struct frame *f, int pix_x, int pix_y);
|
||||
extern void free_frame_menubar (struct frame *);
|
||||
extern bool frame_ancestor_p (struct frame *af, struct frame *df);
|
||||
|
||||
@@ -1637,7 +1637,7 @@ w32_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval)
|
||||
if (!old)
|
||||
/* Make menu bar when there was none. Emacs 25 waited until
|
||||
the next redisplay for this to take effect. */
|
||||
set_frame_menubar (f, false, true);
|
||||
set_frame_menubar (f, true);
|
||||
else
|
||||
{
|
||||
/* Remove menu bar. */
|
||||
|
||||
@@ -155,7 +155,7 @@ w32_popup_dialog (struct frame *f, Lisp_Object header, Lisp_Object contents)
|
||||
void
|
||||
w32_activate_menubar (struct frame *f)
|
||||
{
|
||||
set_frame_menubar (f, false, true);
|
||||
set_frame_menubar (f, true);
|
||||
|
||||
/* Lock out further menubar changes while active. */
|
||||
f->output_data.w32->menubar_active = 1;
|
||||
@@ -258,12 +258,10 @@ menubar_selection_callback (struct frame *f, void * client_data)
|
||||
}
|
||||
|
||||
|
||||
/* Set the contents of the menubar widgets of frame F.
|
||||
The argument FIRST_TIME is currently ignored;
|
||||
it is set the first time this is called, from initialize_frame_menubar. */
|
||||
/* Set the contents of the menubar widgets of frame F. */
|
||||
|
||||
void
|
||||
set_frame_menubar (struct frame *f, bool first_time, bool deep_p)
|
||||
set_frame_menubar (struct frame *f, bool deep_p)
|
||||
{
|
||||
HMENU menubar_widget = f->output_data.w32->menubar_widget;
|
||||
Lisp_Object items;
|
||||
@@ -511,7 +509,7 @@ initialize_frame_menubar (struct frame *f)
|
||||
/* This function is called before the first chance to redisplay
|
||||
the frame. It has to be, so the frame will have the right size. */
|
||||
fset_menu_bar_items (f, menu_bar_items (FRAME_MENU_BAR_ITEMS (f)));
|
||||
set_frame_menubar (f, true, true);
|
||||
set_frame_menubar (f, true);
|
||||
}
|
||||
|
||||
/* Get rid of the menu bar of frame F, and free its storage.
|
||||
|
||||
@@ -12876,7 +12876,7 @@ update_menu_bar (struct frame *f, bool save_match_data, bool hooks_run)
|
||||
the selected frame should be allowed to set it. */
|
||||
if (f == SELECTED_FRAME ())
|
||||
#endif
|
||||
set_frame_menubar (f, false, false);
|
||||
set_frame_menubar (f, false);
|
||||
}
|
||||
else
|
||||
/* On a terminal screen, the menu bar is an ordinary screen
|
||||
|
||||
14
src/xmenu.c
14
src/xmenu.c
@@ -289,7 +289,7 @@ DEFUN ("x-menu-bar-open-internal", Fx_menu_bar_open_internal, Sx_menu_bar_open_i
|
||||
block_input ();
|
||||
|
||||
if (FRAME_EXTERNAL_MENU_BAR (f))
|
||||
set_frame_menubar (f, false, true);
|
||||
set_frame_menubar (f, true);
|
||||
|
||||
menubar = FRAME_X_OUTPUT (f)->menubar_widget;
|
||||
if (menubar)
|
||||
@@ -368,7 +368,7 @@ If FRAME is nil or not given, use the selected frame. */)
|
||||
f = decode_window_system_frame (frame);
|
||||
|
||||
if (FRAME_EXTERNAL_MENU_BAR (f))
|
||||
set_frame_menubar (f, false, true);
|
||||
set_frame_menubar (f, true);
|
||||
|
||||
menubar = FRAME_X_OUTPUT (f)->menubar_widget;
|
||||
if (menubar)
|
||||
@@ -433,7 +433,7 @@ x_activate_menubar (struct frame *f)
|
||||
return;
|
||||
#endif
|
||||
|
||||
set_frame_menubar (f, false, true);
|
||||
set_frame_menubar (f, true);
|
||||
block_input ();
|
||||
popup_activated_flag = 1;
|
||||
#ifdef USE_GTK
|
||||
@@ -677,12 +677,10 @@ apply_systemfont_to_menu (struct frame *f, Widget w)
|
||||
|
||||
#endif
|
||||
|
||||
/* Set the contents of the menubar widgets of frame F.
|
||||
The argument FIRST_TIME is currently ignored;
|
||||
it is set the first time this is called, from initialize_frame_menubar. */
|
||||
/* Set the contents of the menubar widgets of frame F. */
|
||||
|
||||
void
|
||||
set_frame_menubar (struct frame *f, bool first_time, bool deep_p)
|
||||
set_frame_menubar (struct frame *f, bool deep_p)
|
||||
{
|
||||
xt_or_gtk_widget menubar_widget, old_widget;
|
||||
#ifdef USE_X_TOOLKIT
|
||||
@@ -1029,7 +1027,7 @@ initialize_frame_menubar (struct frame *f)
|
||||
/* This function is called before the first chance to redisplay
|
||||
the frame. It has to be, so the frame will have the right size. */
|
||||
fset_menu_bar_items (f, menu_bar_items (FRAME_MENU_BAR_ITEMS (f)));
|
||||
set_frame_menubar (f, true, true);
|
||||
set_frame_menubar (f, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user