mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
swipe: Make a subclass of GtkGestureSingle
This commit is contained in:
parent
315aedf5c8
commit
dca169d9f1
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user