changeset 76906:bb6e75c27940

(xg_update_menubar): Call g_list_next after moving menu bar item.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 03 Apr 2007 07:34:26 +0000
parents 624ef730616c
children 63961350510c
files src/gtkutil.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutil.c	Tue Apr 03 01:07:41 2007 +0000
+++ b/src/gtkutil.c	Tue Apr 03 07:34:26 2007 +0000
@@ -2506,6 +2506,7 @@
           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;
       }