changeset 15107:e025990722ca

(set_frame_menubar): FRAME_MENU_BAR_ITEMS now has four elements per item.
author Richard M. Stallman <rms@gnu.org>
date Mon, 29 Apr 1996 15:29:52 +0000
parents 83b8438fa1a4
children 442458addd50
files src/xmenu.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Sun Apr 28 23:41:52 1996 +0000
+++ b/src/xmenu.c	Mon Apr 29 15:29:52 1996 +0000
@@ -1643,7 +1643,7 @@
       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 @@
       /* 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 @@
 	 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;