Mercurial > emacs
diff src/gtkutil.c @ 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 | 7b5c0104efb0 |
children | 42ad3938ee1a c71725faff1a 02cf29720f31 |
line wrap: on
line diff
--- 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; }