swipe: Make a subclass of GtkGestureSingle

This commit is contained in:
Carlos Garnacho 2014-03-21 19:45:27 +01:00
parent 315aedf5c8
commit dca169d9f1
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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,