[gtk] cellrendererpixbuf: Remove an unused local variable



commit 2164c3dba7838a576480aaecc06052db616ab497
Author: Timm Bäder <mail baedert org>
Date:   Wed May 8 17:02:14 2019 +0200

    cellrendererpixbuf: Remove an unused local variable

 gtk/gtkcellrendererpixbuf.c | 3 +--
 1 file changed, 1 insertion(+), 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]