Commit 21a76236 authored by Chong Yidong's avatar Chong Yidong

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.
parent c44d54b3
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.
......
......@@ -4439,7 +4439,7 @@ update_frame_tool_bar (FRAME_PTR f)
/* 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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment