]> git.eshelyaron.com Git - emacs.git/commitdiff
* gtkutil.c (update_frame_tool_bar): If icon image is invalid and
authorChong Yidong <cyd@stupidchicken.com>
Sat, 4 Nov 2006 03:08:35 +0000 (03:08 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 4 Nov 2006 03:08:35 +0000 (03:08 +0000)
wicon is null, insert an empty button.

src/ChangeLog
src/gtkutil.c

index 73b654b920b4c803d65ff5aa88fbb7e5add9928e..0d6f6838e8e73be6a558da4a0edcbd7ee862e785 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-03  Chong Yidong  <cyd@stupidchicken.com>
+
+       * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
+       wicon is null, insert an empty button.
+
 2006-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
        * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
index 07cc883fb83f06faa48b8aff0e5455bb56ece8ed..f7b9f8c18f97a474b12e88a134ea825a4a1de61e 100644 (file)
@@ -3720,7 +3720,12 @@ update_frame_tool_bar (f)
 
       if (img->load_failed_p || img->pixmap == None)
         {
-          if (wicon) gtk_widget_hide (wicon);
+          if (wicon)
+           gtk_widget_hide (wicon);
+         else
+           gtk_toolbar_insert (GTK_TOOLBAR (x->toolbar_widget),
+                               gtk_tool_button_new (NULL, ""),
+                               i);
           continue;
         }