diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-11-24 15:37:36 -0500 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:43 +0100 |
commit | f0eed4a5b14e7d55331cd58d14f857e789a401ed (patch) | |
tree | 9f5d934051c56dc7fc818f8e6d0879eead10f847 /gtk/gtkcellrendererpixbuf.c | |
parent | f90881271f3af15c0e768b2b1b36c62f3344f4eb (diff) | |
download | gtk+-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.c | 26 |
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; } |