diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-01-08 22:29:49 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-01-08 22:29:49 -0500 |
commit | 21a76236f6530c2c01385956f0984f34e017f5c5 (patch) | |
tree | 2e98e6107864f38cce1a0299361fc84d3a15eca9 /src/gtkutil.c | |
parent | c44d54b34f92eee175957a548becf9f63a81eaef (diff) | |
download | emacs-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.c | 2 |
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); |