Commit 315aedf5 authored by Carlos Garnacho's avatar Carlos Garnacho

drag: Make a subclass of GtkGestureSingle

parent 000f38ed
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment