summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-01-08 22:29:49 -0500
committerChong Yidong <cyd@stupidchicken.com>2011-01-08 22:29:49 -0500
commit21a76236f6530c2c01385956f0984f34e017f5c5 (patch)
tree2e98e6107864f38cce1a0299361fc84d3a15eca9 /src/gtkutil.c
parentc44d54b34f92eee175957a548becf9f63a81eaef (diff)
downloademacs-21a76236f6530c2c01385956f0984f34e017f5c5.tar.gz
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.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index fb003749493..905bbb1561d 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -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);