[nautilus] icon-dnd: fix DnD highlighting regression



commit 7bd06fab98c2c61a170535b6ebd94da1a4db7466
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 1 18:02:56 2010 +0100

    icon-dnd: fix DnD highlighting regression

 libnautilus-private/nautilus-icon-dnd.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c
index bd3bc39..569de09 100644
--- a/libnautilus-private/nautilus-icon-dnd.c
+++ b/libnautilus-private/nautilus-icon-dnd.c
@@ -1356,12 +1356,9 @@ drag_highlight_draw (GtkWidget *widget,
                      cairo_t   *cr,
                      gpointer   user_data)
 {
-	gint x, y, width, height;
+	gint width, height;
 	GdkWindow *window;
 	
-	x = gtk_adjustment_get_value (gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (widget)));
-	y = gtk_adjustment_get_value (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (widget)));
-
         window = gtk_widget_get_window (widget);
         width = gdk_window_get_width (window);
         height = gdk_window_get_height (window);
@@ -1370,11 +1367,11 @@ drag_highlight_draw (GtkWidget *widget,
                           cr,
 			  GTK_STATE_NORMAL, GTK_SHADOW_OUT,
 			  widget, "dnd",
-			  x, y, width, height);
+			  0, 0, width, height);
 
 	cairo_set_line_width (cr, 1.0);
 	cairo_set_source_rgb (cr, 0, 0, 0);
-	cairo_rectangle (cr, x + 0.5, y + 0.5, width - 1, height - 1);
+	cairo_rectangle (cr, 0.5, 0.5, width - 1, height - 1);
 	cairo_stroke (cr);
 
 	return FALSE;



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