]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor fix to GTK tool-bar button refresh code.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 9 Jan 2011 03:29:49 +0000 (22:29 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 9 Jan 2011 03:29:49 +0000 (22:29 -0500)
* gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
when removing extra buttons.

src/ChangeLog
src/gtkutil.c

index 34154e3bf28bf0c075cbe939f225f8f09f8342e4..b94fc68fe3fe9b5480e56bdf6c09a6d375fc0289 100644 (file)
@@ -1,3 +1,8 @@
+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.
index fb003749493c3b6ae91524316fd5923e495511a6..905bbb1561d8b5302f3f6ded4df73076e61aec9d 100644 (file)
@@ -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);