[nautilus] icon-dnd: use negative device offsets to set the drag surface



commit f38bad2536faf497fe56c9a491ab852cb00514c0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Sep 30 18:47:31 2010 +0200

    icon-dnd: use negative device offsets to set the drag surface

 libnautilus-private/nautilus-icon-dnd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-dnd.c b/libnautilus-private/nautilus-icon-dnd.c
index b2dfc41..0a743f1 100644
--- a/libnautilus-private/nautilus-icon-dnd.c
+++ b/libnautilus-private/nautilus-icon-dnd.c
@@ -1306,7 +1306,7 @@ drag_begin_callback (GtkWidget      *widget,
         x_offset = start_x - winx;
         y_offset = start_y - winy;
 
-        cairo_surface_set_device_offset (surface, x_offset, y_offset);
+        cairo_surface_set_device_offset (surface, -x_offset, -y_offset);
         gtk_drag_set_icon_surface (context, surface);
         cairo_surface_destroy (surface);
 



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