[gtk+/xi2] Add GdkDevice field to GdkEventDND.



commit 0d77ad707a0fbd199f16ed6d5a8d1c3ff74ba18c
Author: Carlos Garnacho <carlos gnome org>
Date:   Sat Jan 9 13:29:19 2010 +0100

    Add GdkDevice field to GdkEventDND.

 gdk/gdkevents.c |    7 +++++++
 gdk/gdkevents.h |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index c7d1340..e114a2c 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -956,6 +956,13 @@ gdk_event_get_device (const GdkEvent *event)
     case GDK_PROXIMITY_IN:
     case GDK_PROXIMITY_OUT:
       return event->proximity.device;
+    case GDK_DRAG_ENTER:
+    case GDK_DRAG_LEAVE:
+    case GDK_DRAG_MOTION:
+    case GDK_DRAG_STATUS:
+    case GDK_DROP_START:
+    case GDK_DROP_FINISHED:
+      return event->dnd.device;
     default:
       return NULL;
     }
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index 7ad0329..f379fa9 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -490,6 +490,7 @@ struct _GdkEventDND {
 
   guint32 time;
   gshort x_root, y_root;
+  GdkDevice *device;
 };
 
 union _GdkEvent



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