[gtk+/gestures: 36/92] swipe: Make a subclass of GtkGestureSingle



commit 49e92dfab89cf8a4e99b7b33171fe5a290a3e3bf
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 21 19:45:27 2014 +0100

    swipe: Make a subclass of GtkGestureSingle

 gtk/gtkgestureswipe.c |    2 +-
 gtk/gtkgestureswipe.h |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkgestureswipe.c b/gtk/gtkgestureswipe.c
index d912703..60fb3f7 100644
--- a/gtk/gtkgestureswipe.c
+++ b/gtk/gtkgestureswipe.c
@@ -44,7 +44,7 @@ enum {
 
 static guint signals[N_SIGNALS] = { 0 };
 
-G_DEFINE_TYPE_WITH_PRIVATE (GtkGestureSwipe, gtk_gesture_swipe, GTK_TYPE_GESTURE)
+G_DEFINE_TYPE_WITH_PRIVATE (GtkGestureSwipe, gtk_gesture_swipe, GTK_TYPE_GESTURE_SINGLE)
 
 static void
 gtk_gesture_swipe_finalize (GObject *object)
diff --git a/gtk/gtkgestureswipe.h b/gtk/gtkgestureswipe.h
index 5806bb4..b8564b0 100644
--- a/gtk/gtkgestureswipe.h
+++ b/gtk/gtkgestureswipe.h
@@ -25,7 +25,7 @@
 #endif
 
 #include <gtk/gtkwidget.h>
-#include <gtk/gtkgesture.h>
+#include <gtk/gtkgesturesingle.h>
 
 G_BEGIN_DECLS
 
@@ -41,12 +41,12 @@ typedef struct _GtkGestureSwipeClass GtkGestureSwipeClass;
 
 struct _GtkGestureSwipe
 {
-  GtkGesture parent_instance;
+  GtkGestureSingle parent_instance;
 };
 
 struct _GtkGestureSwipeClass
 {
-  GtkGestureClass parent_class;
+  GtkGestureSingleClass parent_class;
 
   void (* swipe) (GtkGestureSwipe *gesture,
                   gdouble          velocity_x,


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