Commit 5f50daf2 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix usage of FRAME_MENU_BAR_ITEMS in w32menu.c.

 src/w32menu.c (set_frame_menubar, initialize_frame_menubar): Don't
 use FRAME_MENU_BAR_ITEMS as an lvalue.
parent cbcc7007
2012-08-06 Eli Zaretskii <eliz@gnu.org>
* w32menu.c (set_frame_menubar, initialize_frame_menubar): Don't
use FRAME_MENU_BAR_ITEMS as an lvalue.
2012-08-06 Stefan Monnier <monnier@iro.umontreal.ca>
* buffer.h (struct buffer): Revert `indirections' to a simple int;
......
......@@ -413,7 +413,7 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p)
/* Run the hooks. */
safe_run_hooks (Qactivate_menubar_hook);
safe_run_hooks (Qmenu_bar_update_hook);
FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
FSET (f, menu_bar_items, menu_bar_items (FRAME_MENU_BAR_ITEMS (f)));
items = FRAME_MENU_BAR_ITEMS (f);
......@@ -615,7 +615,7 @@ initialize_frame_menubar (FRAME_PTR 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. */
FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
FSET (f, menu_bar_items, menu_bar_items (FRAME_MENU_BAR_ITEMS (f)));
set_frame_menubar (f, 1, 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment