diff src/gtkutil.c @ 112168:744d9787c683

Minor fix to GTK tool-bar button refresh code. * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index when removing extra buttons.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 08 Jan 2011 22:29:49 -0500
parents dffe14ef6b65
children 417b1e4d63cd
line wrap: on
line diff
--- a/src/gtkutil.c	Sat Jan 08 23:57:07 2011 +0100
+++ b/src/gtkutil.c	Sat Jan 08 22:29:49 2011 -0500
@@ -4439,7 +4439,7 @@
   /* Remove buttons not longer needed.  */
   do
     {
-      ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), j++);
+      ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), j);
       if (ti)
 	gtk_container_remove (GTK_CONTAINER (wtoolbar), GTK_WIDGET (ti));
     } while (ti != NULL);