[gtk+/gtk-3-2] Use the right icon-name for missing images
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] Use the right icon-name for missing images
- Date: Thu, 5 Jan 2012 19:08:56 +0000 (UTC)
commit c40ea99866cf7da7774750f78dae5d12570156d8
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 5 14:05:47 2012 -0500
Use the right icon-name for missing images
Patch by Erik van Pienbroek, bug 629878.
gtk/gtkiconfactory.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c
index ba25312..59046c1 100644
--- a/gtk/gtkiconfactory.c
+++ b/gtk/gtkiconfactory.c
@@ -1663,9 +1663,10 @@ render_fallback_image (GtkStyleContext *context,
_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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]