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/gtkgesturelongpress.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/gtkgesturelongpress.c')
-rw-r--r-- | gtk/gtkgesturelongpress.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkgesturelongpress.c b/gtk/gtkgesturelongpress.c index 073a7b6d09..6b5632d15f 100644 --- a/gtk/gtkgesturelongpress.c +++ b/gtk/gtkgesturelongpress.c @@ -40,6 +40,7 @@ #include "gtkdnd.h" #include "gtkprivate.h" #include "gtkintl.h" +#include "gtkmarshalers.h" typedef struct _GtkGestureLongPressPrivate GtkGestureLongPressPrivate; @@ -303,8 +304,12 @@ gtk_gesture_long_press_class_init (GtkGestureLongPressClass *klass) G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkGestureLongPressClass, pressed), - 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[PRESSED], + G_TYPE_FROM_CLASS (klass), + _gtk_marshal_VOID__DOUBLE_DOUBLEv); /** * GtkGestureLongPress::cancelled: * @gesture: the object which received the signal |