summaryrefslogtreecommitdiff
path: root/gtk/gtkiconview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-05-30 21:26:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-06-02 09:08:15 -0400
commit138e958614fe4d11a6c7635972ff4f32079053ab (patch)
tree702e963e803790e6d0ab240aea94672d9e395d52 /gtk/gtkiconview.c
parent85b4eef0047d762208b372339d46c65f1f03a6f0 (diff)
downloadgtk+-138e958614fe4d11a6c7635972ff4f32079053ab.tar.gz
icon view: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r--gtk/gtkiconview.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 705356d02c..96e6d0dcef 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -1903,7 +1903,7 @@ gtk_icon_view_draw (GtkWidget *widget,
paint_area.y = item->cell_area.y - icon_view->priv->item_padding;
paint_area.width = item->cell_area.width + icon_view->priv->item_padding * 2;
paint_area.height = item->cell_area.height + icon_view->priv->item_padding * 2;
-
+
cairo_save (cr);
cairo_rectangle (cr, paint_area.x, paint_area.y, paint_area.width, paint_area.height);
@@ -1925,11 +1925,8 @@ gtk_icon_view_draw (GtkWidget *widget,
if (dest_item &&
dest_pos != GTK_ICON_VIEW_NO_DROP)
{
- GtkStyleContext *context;
GdkRectangle rect = { 0 };
- context = gtk_widget_get_style_context (widget);
-
switch (dest_pos)
{
case GTK_ICON_VIEW_DROP_INTO: