summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-05-08 17:02:14 +0200
committerTimm Bäder <mail@baedert.org>2019-05-14 08:51:03 +0200
commit2164c3dba7838a576480aaecc06052db616ab497 (patch)
tree08ec5eb61ffb189101e80ac948bc95bc123bb72f /gtk/gtkcellrendererpixbuf.c
parent8cd1a4a09571ee6e34ae6b405f5754f4e0f76b22 (diff)
downloadgtk+-2164c3dba7838a576480aaecc06052db616ab497.tar.gz
cellrendererpixbuf: Remove an unused local variable
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 25b7ad4c21..f30ccccf97 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -497,7 +497,6 @@ gtk_cell_renderer_pixbuf_snapshot (GtkCellRenderer *cell,
GtkCellRendererPixbufPrivate *priv = cellpixbuf->priv;
GtkStyleContext *context;
GdkRectangle pix_rect;
- GdkRectangle draw_rect;
gboolean is_expander;
gint xpad, ypad;
GtkIconHelper *icon_helper;
@@ -515,7 +514,7 @@ gtk_cell_renderer_pixbuf_snapshot (GtkCellRenderer *cell,
pix_rect.width -= xpad * 2;
pix_rect.height -= ypad * 2;
- if (!gdk_rectangle_intersect (cell_area, &pix_rect, &draw_rect))
+ if (!gdk_rectangle_intersect (cell_area, &pix_rect, NULL))
return;
context = gtk_widget_get_style_context (widget);