and handle image load failure (invalid pixmap).
+2003-01-26 Jan D. <jan.h.d@swipnet.se>
+
+ * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
+ and handle image load failure.
+
2003-01-26 Jason Rumney <jasonr@gnu.org>
* w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
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);