[gtk+] dnd: pass hotspot to GDK
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] dnd: pass hotspot to GDK
- Date: Tue, 8 Dec 2015 02:55:56 +0000 (UTC)
commit bf7a7a5f3d0ddae36a0fab79d4d3754d25ada5d0
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 7 21:54:55 2015 -0500
dnd: pass hotspot to GDK
This uses the new api introduced in the previous commits.
gtk/gtkdnd.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 20ec74e..eba82c9 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -2468,6 +2468,8 @@ gtk_drag_set_icon_window (GdkDragContext *context,
if (!widget)
goto out;
+ gdk_drag_context_set_hotspot (context, hot_x, hot_y);
+
if (!info->icon_window)
{
GdkScreen *screen;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]