[gtk+/xi2: 917/1239] GdkDevice: add grab() and ungrab() vmethods.



commit 90284c8381ad89d704ebb2e0d1d5939504f13f4c
Author: Carlos Garnacho <carlos lanedo com>
Date:   Fri Aug 28 18:00:43 2009 +0200

    GdkDevice: add grab() and ungrab() vmethods.

 gdk/gdkdeviceprivate.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h
index 0db7066..733442e 100644
--- a/gdk/gdkdeviceprivate.h
+++ b/gdk/gdkdeviceprivate.h
@@ -25,6 +25,7 @@
 #define __GDK_DEVICE_PRIVATE_H__
 
 #include <gdk/gdkdevice.h>
+#include <gdk/gdkevents.h>
 
 G_BEGIN_DECLS
 
@@ -67,6 +68,16 @@ struct _GdkDeviceClass
                               gint             *win_x,
                               gint             *win_y,
                               GdkModifierType  *mask);
+  GdkGrabStatus (* grab)     (GdkDevice        *device,
+                              GdkWindow        *window,
+                              gboolean          owner_events,
+                              GdkEventMask      event_mask,
+                              GdkWindow        *confine_to,
+                              GdkCursor        *cursor,
+                              guint32           time_);
+  void          (*ungrab)    (GdkDevice        *device,
+                              guint32           time_);
+
   GdkWindow * (* window_at_position) (GdkDevice *device,
                                       gint      *win_x,
                                       gint      *win_y);



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