iconhelper: Use the screen's icon theme

... and not the default one.
This commit is contained in:
Benjamin Otte 2015-03-12 01:14:06 +01:00
parent 93f8966bd9
commit 7ad203732f

View File

@ -288,7 +288,7 @@ ensure_pixbuf_for_gicon (GtkIconHelper *self,
if (self->priv->rendered_pixbuf)
return;
icon_theme = gtk_icon_theme_get_default ();
icon_theme = gtk_icon_theme_get_for_screen (gtk_style_context_get_screen (context));
flags = get_icon_lookup_flags (self, context);
ensure_icon_size (self, context, &width, &height);
@ -707,7 +707,7 @@ ensure_surface_for_gicon (GtkIconHelper *self,
if (!check_invalidate_surface (self, context))
return;
icon_theme = gtk_icon_theme_get_default ();
icon_theme = gtk_icon_theme_get_for_screen (gtk_style_context_get_screen (context));
flags = get_icon_lookup_flags (self, context);
ensure_icon_size (self, context, &width, &height);