[gtk+] iconhelper: Replace function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconhelper: Replace function
- Date: Thu, 12 Mar 2015 00:21:23 +0000 (UTC)
commit 93f8966bd9f63b468511168287ba89420fda4edc
Author: Benjamin Otte <otte redhat com>
Date: Wed Mar 11 23:01:05 2015 +0100
iconhelper: Replace function
The old one just calls the other one.
gtk/gtkiconhelper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 415b55c..1f598b1 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -444,7 +444,7 @@ _gtk_icon_helper_ensure_pixbuf (GtkIconHelper *self,
case GTK_IMAGE_STOCK:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- icon_set = gtk_style_context_lookup_icon_set (context, self->priv->stock_id);
+ icon_set = gtk_icon_factory_lookup_default (self->priv->stock_id);
if (icon_set != NULL)
ensure_pixbuf_for_icon_set (self, context, icon_set);
else
@@ -664,7 +664,7 @@ ensure_stated_surface_from_info (GtkIconHelper *self,
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- icon_set = gtk_style_context_lookup_icon_set (context, GTK_STOCK_MISSING_IMAGE);
+ icon_set = gtk_icon_factory_lookup_default (GTK_STOCK_MISSING_IMAGE);
destination =
gtk_icon_set_render_icon_pixbuf (icon_set, context, self->priv->icon_size);
@@ -751,7 +751,7 @@ _gtk_icon_helper_ensure_surface (GtkIconHelper *self,
case GTK_IMAGE_STOCK:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- icon_set = gtk_style_context_lookup_icon_set (context, self->priv->stock_id);
+ icon_set = gtk_icon_factory_lookup_default (self->priv->stock_id);
if (icon_set != NULL)
ensure_surface_for_icon_set (self, context, icon_set);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]