diff options
author | Christian Hergert <chergert@redhat.com> | 2019-06-02 14:07:27 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2019-06-02 14:24:51 -0700 |
commit | 41e373f10cd727a9d87ca23ee5f72086451074e9 (patch) | |
tree | 661274425a52b77454e19ac0b6c8ca36d86d25cf /gtk/gtkgesturedrag.c | |
parent | 1a4e360c2c289a4e3cb229310f24817234cd052b (diff) | |
download | gtk+-41e373f10cd727a9d87ca23ee5f72086451074e9.tar.gz |
gtk: fix all uses of g_cclosure_marshal_generic
This adds specific marshallers for all of the locations where a generic
marshaller is being used. It also provides va_marshallers to reduce the
chances that we get stack traces from perf going through ffi_call_unix64.
This is forward ported from gtk-3-24.
# Conflicts:
# gtk/gtkeventcontrollerkey.c
# gtk/gtkeventcontrollermotion.c
# gtk/gtkgesture.c
# gtk/gtkgesturemultipress.c
Diffstat (limited to 'gtk/gtkgesturedrag.c')
-rw-r--r-- | gtk/gtkgesturedrag.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c index baccf2f2df..54cdacb683 100644 --- a/gtk/gtkgesturedrag.c +++ b/gtk/gtkgesturedrag.c @@ -34,6 +34,7 @@ #include "gtkgesturedrag.h" #include "gtkgesturedragprivate.h" #include "gtkintl.h" +#include "gtkmarshalers.h" typedef struct _GtkGestureDragPrivate GtkGestureDragPrivate; typedef struct _EventData EventData; @@ -154,8 +155,12 @@ gtk_gesture_drag_class_init (GtkGestureDragClass *klass) G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkGestureDragClass, drag_begin), - NULL, NULL, NULL, + NULL, NULL, + _gtk_marshal_VOID__DOUBLE_DOUBLE, G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); + g_signal_set_va_marshaller (signals[DRAG_BEGIN], + G_TYPE_FROM_CLASS (klass), + _gtk_marshal_VOID__DOUBLE_DOUBLEv); /** * GtkGestureDrag::drag-update: * @gesture: the object which received the signal @@ -169,8 +174,12 @@ gtk_gesture_drag_class_init (GtkGestureDragClass *klass) G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkGestureDragClass, drag_update), - NULL, NULL, NULL, + NULL, NULL, + _gtk_marshal_VOID__DOUBLE_DOUBLE, G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); + g_signal_set_va_marshaller (signals[DRAG_UPDATE], + G_TYPE_FROM_CLASS (klass), + _gtk_marshal_VOID__DOUBLE_DOUBLEv); /** * GtkGestureDrag::drag-end: * @gesture: the object which received the signal @@ -184,8 +193,12 @@ gtk_gesture_drag_class_init (GtkGestureDragClass *klass) G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkGestureDragClass, drag_end), - NULL, NULL, NULL, + NULL, NULL, + _gtk_marshal_VOID__DOUBLE_DOUBLE, G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); + g_signal_set_va_marshaller (signals[DRAG_END], + G_TYPE_FROM_CLASS (klass), + _gtk_marshal_VOID__DOUBLE_DOUBLEv); } static void |