[gtk+] iconhelper: Use the screen's icon theme
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconhelper: Use the screen's icon theme
- Date: Thu, 12 Mar 2015 00:21:28 +0000 (UTC)
commit 7ad203732f4d1e6925a31519dc1e5fabf94262d7
Author: Benjamin Otte <otte redhat com>
Date: Thu Mar 12 01:14:06 2015 +0100
iconhelper: Use the screen's icon theme
... and not the default one.
gtk/gtkiconhelper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 1f598b1..08c9838 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]