summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-24 15:37:36 -0500
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:43 +0100
commitf0eed4a5b14e7d55331cd58d14f857e789a401ed (patch)
tree9f5d934051c56dc7fc818f8e6d0879eead10f847 /gtk/gtkcellrendererpixbuf.c
parentf90881271f3af15c0e768b2b1b36c62f3344f4eb (diff)
downloadgtk+-f0eed4a5b14e7d55331cd58d14f857e789a401ed.tar.gz
Use gtk_icon_info_load_symbolic_for_context
gtk_icon_info_load_symbolic_for_style is going to be deprecated.
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r--gtk/gtkcellrendererpixbuf.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 52b4ec98e5..729d08a89d 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -533,14 +533,13 @@ gtk_cell_renderer_pixbuf_create_themed_pixbuf (GtkCellRendererPixbuf *cellpixbuf
if (info)
{
- GtkStyle *style;
-
- style = gtk_widget_get_style (GTK_WIDGET (widget));
- priv->pixbuf = gtk_icon_info_load_symbolic_for_style (info,
- style,
- GTK_STATE_NORMAL,
- NULL,
- NULL);
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (widget));
+ priv->pixbuf = gtk_icon_info_load_symbolic_for_context (info,
+ context,
+ NULL,
+ NULL);
gtk_icon_info_free (info);
}
@@ -603,12 +602,13 @@ create_symbolic_pixbuf (GtkCellRendererPixbuf *cellpixbuf,
if (info)
{
- GtkStyle *style;
+ GtkStyleContext *context;
- style = gtk_widget_get_style (GTK_WIDGET (widget));
- pixbuf = gtk_icon_info_load_symbolic_for_style (info,
- style, state,
- NULL, NULL);
+ context = gtk_widget_get_style_context (GTK_WIDGET (widget));
+ pixbuf = gtk_icon_info_load_symbolic_for_context (info,
+ context,
+ NULL,
+ NULL);
gtk_icon_info_free (info);
return pixbuf;
}