diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 19:28:53 -0400 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2013-06-24 22:20:49 -0400 |
commit | 02c793f24aa0a967473da48c5ff207c75ec2f413 (patch) | |
tree | 2cc7daa15b51d016805f5de546a447624e94cca6 /gtk/gtkiconhelper.c | |
parent | 2b571f41e2cfc4230871624c1a784bb112d85538 (diff) | |
download | gtk+-02c793f24aa0a967473da48c5ff207c75ec2f413.tar.gz |
Start migrating internals away from GtkStock
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r-- | gtk/gtkiconhelper.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 58ae8a15db..cfdbf5d8f0 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -161,11 +161,16 @@ ensure_stated_icon_from_info (GtkIconHelper *self, if (destination == NULL) { - GtkIconSet *icon_set; - icon_set = gtk_style_context_lookup_icon_set (context, GTK_STOCK_MISSING_IMAGE); - - destination = - gtk_icon_set_render_icon_pixbuf (icon_set, context, self->priv->icon_size); + GtkIconTheme *icon_theme; + int width; + + icon_theme = gtk_icon_theme_get_for_screen (gtk_style_context_get_screen (context)); + gtk_icon_size_lookup (self->priv->icon_size, &width, NULL); + destination = gtk_icon_theme_load_icon (icon_theme, + "image-missing", + width, + GTK_ICON_LOOKUP_GENERIC_FALLBACK, + NULL); } else if (!symbolic) { |