summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-08 20:57:24 +0100
committerBenjamin Otte <otte@redhat.com>2015-12-09 13:30:40 +0100
commitccfc4d3f128d0617b3d9c0bbe034b5ceae771780 (patch)
tree80a11fc68cb0844a8c3979ff4f4902803f65d8df /gtk/gtkcellrendererpixbuf.c
parente95e2d5048e59cb0615943400d738534a24aa958 (diff)
downloadgtk+-ccfc4d3f128d0617b3d9c0bbe034b5ceae771780.tar.gz
iconhelper: Remove the context argument
Instead, use the widget's context.
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r--gtk/gtkcellrendererpixbuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 2f781cbbf4..36dbb045b7 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -480,7 +480,6 @@ gtk_cell_renderer_pixbuf_get_size (GtkCellRenderer *cell,
if (!_gtk_icon_helper_get_is_empty (icon_helper))
_gtk_icon_helper_get_size (icon_helper,
- gtk_widget_get_style_context (widget),
&pixbuf_width, &pixbuf_height);
g_object_unref (icon_helper);
@@ -594,7 +593,7 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
icon_helper = create_icon_helper (cellpixbuf, widget);
_gtk_icon_helper_draw (icon_helper,
- context, cr,
+ cr,
pix_rect.x, pix_rect.y);
g_object_unref (icon_helper);