From: Jan Djärv Date: Tue, 3 Apr 2007 07:34:37 +0000 (+0000) Subject: (xg_update_menubar): Call g_list_next after moving X-Git-Tag: emacs-pretest-22.0.97~23 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a194c9264961cc32eff367c4a72330c8a24e5f7;p=emacs.git (xg_update_menubar): Call g_list_next after moving menu bar item. --- diff --git a/src/ChangeLog b/src/ChangeLog index b1c8eebb55a..1a39c012711 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-04-03 Jan Dj,Ad(Brv + + * gtkutil.c (xg_update_menubar): Call g_list_next after moving + menu bar item. + 2007-04-02 Juanma Barranquero * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX. diff --git a/src/gtkutil.c b/src/gtkutil.c index fa8e91546ce..8dfcf84f0f2 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -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; }