summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r--gtk/gtkiconhelper.c15
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)
{