From f04366cb45618334d183b74f92fb28bd1dff79d4 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 29 Apr 1996 15:29:52 +0000 Subject: [PATCH] (set_frame_menubar): FRAME_MENU_BAR_ITEMS now has four elements per item. --- src/xmenu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xmenu.c b/src/xmenu.c index 9e85afdfcda..ef2bbd792ac 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1643,7 +1643,7 @@ set_frame_menubar (f, first_time, deep_p) menu_items = f->menu_bar_vector; menu_items_allocated = XVECTOR (menu_items)->size; init_menu_items (); - for (i = 0; i < XVECTOR (items)->size; i += 3) + for (i = 0; i < XVECTOR (items)->size; i += 4) { Lisp_Object key, string, maps; @@ -1686,7 +1686,7 @@ set_frame_menubar (f, first_time, deep_p) /* Now GC cannot happen during the lifetime of the widget_value, so it's safe to store data from a Lisp_String. */ wv = first_wv->contents; - for (i = 0; i < XVECTOR (items)->size; i += 3) + for (i = 0; i < XVECTOR (items)->size; i += 4) { Lisp_Object string; string = XVECTOR (items)->contents[i + 1]; @@ -1706,7 +1706,7 @@ set_frame_menubar (f, first_time, deep_p) just the top level menu bar strings. */ items = FRAME_MENU_BAR_ITEMS (f); - for (i = 0; i < XVECTOR (items)->size; i += 3) + for (i = 0; i < XVECTOR (items)->size; i += 4) { Lisp_Object string; -- 2.39.2