From fcd01e97187a0c58dfc5c0a4db29d2e92ec3c3de Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Jan 2012 14:05:47 -0500 Subject: [PATCH] Use the right icon-name for missing images Patch by Erik van Pienbroek, bug 629878. --- gtk/gtkiconfactory.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c index b4146ad039..c4b6c9cdd4 100644 --- a/gtk/gtkiconfactory.c +++ b/gtk/gtkiconfactory.c @@ -1581,9 +1581,10 @@ render_fallback_image (GtkStyle *style, _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); }