[gtk+] icon view: Fix compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icon view: Fix compiler warnings
- Date: Tue, 2 Jun 2015 13:11:00 +0000 (UTC)
commit 138e958614fe4d11a6c7635972ff4f32079053ab
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 30 21:26:27 2015 -0400
icon view: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
gtk/gtkiconview.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 705356d..96e6d0d 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]