* gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
when removing extra buttons.
+2011-01-09 Chong Yidong <cyd@stupidchicken.com>
+
+ * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
+ when removing extra buttons.
+
2011-01-08 Chong Yidong <cyd@stupidchicken.com>
* fns.c (Fyes_or_no_p): Doc fix.
/* 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);