]> git.eshelyaron.com Git - emacs.git/commitdiff
(xg_update_menubar): Call g_list_next after moving
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 3 Apr 2007 07:34:37 +0000 (07:34 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 3 Apr 2007 07:34:37 +0000 (07:34 +0000)
menu bar item.

src/ChangeLog
src/gtkutil.c

index b1c8eebb55a62140e38fbb96f0ba3a4c15edf43e..1a39c012711493378ce109b448d2539a2f609ef6 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (xg_update_menubar): Call g_list_next after moving
+       menu bar item.
+
 2007-04-02  Juanma Barranquero  <lekktu@gmail.com>
 
        * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
index fa8e91546ce2b22867ca13c6b5bd825556898365..8dfcf84f0f2da08d7b00ab3f351236e9466a793d 100644 (file)
@@ -2506,6 +2506,7 @@ xg_update_menubar (menubar, f, list, iter, pos, val,
           g_list_free (*list);
           *list = iter = gtk_container_get_children (GTK_CONTAINER (menubar));
           while (nr-- > 0) iter = g_list_next (iter);
+          if (iter) iter = g_list_next (iter);
           val = val->next;
           ++pos;
       }