summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index d2acfee8c54..d8d1e36a8a6 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2740,7 +2740,14 @@ update_frame_tool_bar (f)
img_id = lookup_image (f, image);
img = IMAGE_FROM_ID (f, img_id);
+ prepare_image_for_display (f, img);
+ if (img->load_failed_p || img->pixmap == None)
+ {
+ if (wicon) gtk_widget_hide (wicon);
+ continue;
+ }
+
if (! wicon)
{
GdkPixmap *gpix = gdk_pixmap_foreign_new (img->pixmap);