# HG changeset patch # User Chong Yidong # Date 1162609715 0 # Node ID 7c60775b5a526be5072cdfd3226b3e195252ddd1 # Parent 4a5c7b0a29ccf5997df1badfbb705e3e16b55228 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and wicon is null, insert an empty button. diff -r 4a5c7b0a29cc -r 7c60775b5a52 src/ChangeLog --- 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 + + * 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 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the diff -r 4a5c7b0a29cc -r 7c60775b5a52 src/gtkutil.c --- 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; }