summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-03-21 19:39:21 +0100
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:23 +0200
commit315aedf5c8ce306ced5645e5b2bfd4b899bb4dad (patch)
tree34469aa015cd2e0fda772402f5af7864062ddefb
parent000f38ed978029eeb1ba06aa8896233972afc9bd (diff)
downloadgtk+-315aedf5c8ce306ced5645e5b2bfd4b899bb4dad.tar.gz
drag: Make a subclass of GtkGestureSingle
-rw-r--r--gtk/gtkgesturedrag.c2
-rw-r--r--gtk/gtkgesturedrag.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c
index 177471844b..268b945713 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 f6a0a4d437..1d0f706d21 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,