From: Eli Zaretskii Date: Sat, 30 Jan 2021 19:13:53 +0000 (+0200) Subject: Fix NS build broken by a recent change X-Git-Tag: emacs-28.0.90~4020 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=419a33eb1dd37fe529e756e04253ff1c9ad2eeb1;p=emacs.git Fix NS build broken by a recent change * src/nsmenu.m (set_frame_menubar, Fns_reset_menu): Adapt to recent changes in set_frame_menubar. (Bug#45759) --- diff --git a/src/nsmenu.m b/src/nsmenu.m index f8219d27026..24aa5a0ac11 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m @@ -405,7 +405,7 @@ ns_update_menubar (struct frame *f, bool deep_p) frame's menus have changed, and the *step representation should be updated from Lisp. */ void -set_frame_menubar (struct frame *f, bool first_time, bool deep_p) +set_frame_menubar (struct frame *f, bool deep_p) { ns_update_menubar (f, deep_p); } @@ -1795,7 +1795,7 @@ DEFUN ("ns-reset-menu", Fns_reset_menu, Sns_reset_menu, 0, 0, 0, doc: /* Cause the NS menu to be re-calculated. */) (void) { - set_frame_menubar (SELECTED_FRAME (), 1, 0); + set_frame_menubar (SELECTED_FRAME (), 0); return Qnil; }