diff src/gtkutil.c @ 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 e852dba095f9
children 1962a74982ce dc002877ce12 4ef881a120fe
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;
       }