[gtk+] dnd-quartz: take hot spot into account when setting up drag
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] dnd-quartz: take hot spot into account when setting up drag
- Date: Tue, 19 Oct 2010 12:22:44 +0000 (UTC)
commit 8ac7f641235296a502c583cc2aa97e192cdb862b
Author: Kristian Rietveld <kris gtk org>
Date: Tue Oct 19 13:26:06 2010 +0200
dnd-quartz: take hot spot into account when setting up drag
gtk/gtkdnd-quartz.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index 74964d0..bc27d14 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -1080,6 +1080,9 @@ gtk_drag_begin_idle (gpointer arg)
drag_image = _gtk_quartz_create_image_from_pixbuf (info->icon_pixbuf);
+ point.x -= info->hot_x;
+ point.y -= info->hot_y;
+
[nswindow dragImage:drag_image
at:point
offset:NSMakeSize(0, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]