changeset 73661:7c60775b5a52

* gtkutil.c (update_frame_tool_bar): If icon image is invalid and wicon is null, insert an empty button.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 04 Nov 2006 03:08:35 +0000
parents 4a5c7b0a29cc
children ea2e12adb144
files src/ChangeLog src/gtkutil.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Nov 04 00:48:31 2006 +0000
+++ b/src/ChangeLog	Sat Nov 04 03:08:35 2006 +0000
@@ -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,Ad(Brv  <jan.h.d@swipnet.se>
 
 	* xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
--- a/src/gtkutil.c	Sat Nov 04 00:48:31 2006 +0000
+++ b/src/gtkutil.c	Sat Nov 04 03:08:35 2006 +0000
@@ -3720,7 +3720,12 @@
 
       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;
         }