]> Pileus Git - ~andy/gtk/commitdiff
Use the right icon-name for missing images
authorMatthias Clasen <mclasen@redhat.com>
Thu, 5 Jan 2012 19:05:47 +0000 (14:05 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 5 Jan 2012 19:07:04 +0000 (14:07 -0500)
Patch by Erik van Pienbroek, bug 629878.

gtk/gtkiconfactory.c

index be23e1471c0fb745e97d766babd08ff71d742a15..97e28195c108b587eb1bf5e0c7d6a2589a6d71ab 100644 (file)
@@ -1664,9 +1664,10 @@ render_fallback_image (GtkStyleContext   *context,
       _gtk_icon_theme_ensure_builtin_cache ();
 
       index = _gtk_icon_cache_get_directory_index (_builtin_cache, "24");
       _gtk_icon_theme_ensure_builtin_cache ();
 
       index = _gtk_icon_cache_get_directory_index (_builtin_cache, "24");
-      pixbuf = _gtk_icon_cache_get_icon (_builtin_cache,
-                                        GTK_STOCK_MISSING_IMAGE,
-                                        index);
+      pixbuf = _gtk_icon_cache_get_icon (_builtin_cache, "image-missing", index);
+
+      g_return_val_if_fail(pixbuf != NULL, NULL);
+
       gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
       g_object_unref (pixbuf);
     }
       gtk_icon_source_set_pixbuf (&fallback_source, pixbuf);
       g_object_unref (pixbuf);
     }