[gtk+/gestures: 35/92] drag: Make a subclass of GtkGestureSingle



commit 168e5b180d7667876cd25add5faaaf60385a32e5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 21 19:39:21 2014 +0100

    drag: Make a subclass of GtkGestureSingle

 gtk/gtkgesturedrag.c |    2 +-
 gtk/gtkgesturedrag.h |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c
index 1774718..268b945 100644
--- a/gtk/gtkgesturedrag.c
+++ b/gtk/gtkgesturedrag.c
@@ -41,7 +41,7 @@ enum {
 
 static guint signals[N_SIGNALS] = { 0 };
 
-G_DEFINE_TYPE_WITH_PRIVATE (GtkGestureDrag, gtk_gesture_drag, GTK_TYPE_GESTURE)
+G_DEFINE_TYPE_WITH_PRIVATE (GtkGestureDrag, gtk_gesture_drag, GTK_TYPE_GESTURE_SINGLE)
 
 static void
 gtk_gesture_drag_begin (GtkGesture       *gesture,
diff --git a/gtk/gtkgesturedrag.h b/gtk/gtkgesturedrag.h
index f6a0a4d..1d0f706 100644
--- a/gtk/gtkgesturedrag.h
+++ b/gtk/gtkgesturedrag.h
@@ -24,7 +24,7 @@
 #endif
 
 #include <gtk/gtkwidget.h>
-#include <gtk/gtkgesture.h>
+#include <gtk/gtkgesturesingle.h>
 
 G_BEGIN_DECLS
 
@@ -40,12 +40,12 @@ typedef struct _GtkGestureDragClass GtkGestureDragClass;
 
 struct _GtkGestureDrag
 {
-  GtkGesture parent_instance;
+  GtkGestureSingle parent_instance;
 };
 
 struct _GtkGestureDragClass
 {
-  GtkGestureClass parent_class;
+  GtkGestureSingleClass parent_class;
 
   void (* drag_begin)  (GtkGestureDrag *gesture,
                         gdouble         start_x,


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