aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2011-01-08 22:29:49 -0500
committerChong Yidong2011-01-08 22:29:49 -0500
commit21a76236f6530c2c01385956f0984f34e017f5c5 (patch)
tree2e98e6107864f38cce1a0299361fc84d3a15eca9 /src
parentc44d54b34f92eee175957a548becf9f63a81eaef (diff)
downloademacs-21a76236f6530c2c01385956f0984f34e017f5c5.tar.gz
emacs-21a76236f6530c2c01385956f0984f34e017f5c5.zip
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')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/gtkutil.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 34154e3bf28..b94fc68fe3f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-01-09 Chong Yidong <cyd@stupidchicken.com>
2
3 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
4 when removing extra buttons.
5
12011-01-08 Chong Yidong <cyd@stupidchicken.com> 62011-01-08 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * fns.c (Fyes_or_no_p): Doc fix. 8 * fns.c (Fyes_or_no_p): Doc fix.
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)
4439 /* Remove buttons not longer needed. */ 4439 /* Remove buttons not longer needed. */
4440 do 4440 do
4441 { 4441 {
4442 ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), j++); 4442 ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), j);
4443 if (ti) 4443 if (ti)
4444 gtk_container_remove (GTK_CONTAINER (wtoolbar), GTK_WIDGET (ti)); 4444 gtk_container_remove (GTK_CONTAINER (wtoolbar), GTK_WIDGET (ti));
4445 } while (ti != NULL); 4445 } while (ti != NULL);