Merge branch 'wip/chergert/marshalling-gtk4' into 'master'

gtk: fix all uses of g_cclosure_marshal_generic

See merge request GNOME/gtk!905
This commit is contained in:
Matthias Clasen 2019-06-02 23:34:02 +00:00
commit 3a42aab680
16 changed files with 159 additions and 33 deletions

View File

@ -24,6 +24,7 @@
#include "gtkactionobservable.h" #include "gtkactionobservable.h"
#include "gtkactionobserver.h" #include "gtkactionobserver.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
#include <string.h> #include <string.h>
@ -633,8 +634,16 @@ gtk_action_muxer_class_init (GObjectClass *class)
class->finalize = gtk_action_muxer_finalize; class->finalize = gtk_action_muxer_finalize;
class->dispose = gtk_action_muxer_dispose; class->dispose = gtk_action_muxer_dispose;
accel_signal = g_signal_new (I_("primary-accel-changed"), GTK_TYPE_ACTION_MUXER, G_SIGNAL_RUN_LAST, accel_signal = g_signal_new (I_("primary-accel-changed"),
0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); GTK_TYPE_ACTION_MUXER,
G_SIGNAL_RUN_LAST,
0,
NULL, NULL,
_gtk_marshal_VOID__STRING_STRING,
G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
g_signal_set_va_marshaller (accel_signal,
G_TYPE_FROM_CLASS (class),
_gtk_marshal_VOID__STRING_STRINGv);
properties[PROP_PARENT] = g_param_spec_object ("parent", "Parent", properties[PROP_PARENT] = g_param_spec_object ("parent", "Parent",
"The parent muxer", "The parent muxer",

View File

@ -30,6 +30,7 @@
#include "config.h" #include "config.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkwidgetprivate.h" #include "gtkwidgetprivate.h"
#include "gtkeventcontrollerprivate.h" #include "gtkeventcontrollerprivate.h"
@ -304,8 +305,12 @@ gtk_event_controller_key_class_init (GtkEventControllerKeyClass *klass)
g_signal_new (I_("key-pressed"), g_signal_new (I_("key-pressed"),
GTK_TYPE_EVENT_CONTROLLER_KEY, GTK_TYPE_EVENT_CONTROLLER_KEY,
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, _gtk_boolean_handled_accumulator, NULL, NULL, 0, _gtk_boolean_handled_accumulator, NULL,
_gtk_marshal_BOOLEAN__UINT_UINT_FLAGS,
G_TYPE_BOOLEAN, 3, G_TYPE_UINT, G_TYPE_UINT, GDK_TYPE_MODIFIER_TYPE); G_TYPE_BOOLEAN, 3, G_TYPE_UINT, G_TYPE_UINT, GDK_TYPE_MODIFIER_TYPE);
g_signal_set_va_marshaller (signals[KEY_PRESSED],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_BOOLEAN__UINT_UINT_FLAGSv);
/** /**
* GtkEventControllerKey::key-released: * GtkEventControllerKey::key-released:
@ -320,8 +325,12 @@ gtk_event_controller_key_class_init (GtkEventControllerKeyClass *klass)
g_signal_new (I_("key-released"), g_signal_new (I_("key-released"),
GTK_TYPE_EVENT_CONTROLLER_KEY, GTK_TYPE_EVENT_CONTROLLER_KEY,
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL, 0, NULL, NULL,
_gtk_marshal_VOID__UINT_UINT_FLAGS,
G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, GDK_TYPE_MODIFIER_TYPE); G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, GDK_TYPE_MODIFIER_TYPE);
g_signal_set_va_marshaller (signals[KEY_RELEASED],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__UINT_UINT_FLAGSv);
/** /**
* GtkEventControllerKey::modifiers: * GtkEventControllerKey::modifiers:
@ -337,9 +346,13 @@ gtk_event_controller_key_class_init (GtkEventControllerKeyClass *klass)
g_signal_new (I_("modifiers"), g_signal_new (I_("modifiers"),
GTK_TYPE_EVENT_CONTROLLER_KEY, GTK_TYPE_EVENT_CONTROLLER_KEY,
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, NULL, NULL, 0, NULL,
g_cclosure_marshal_BOOLEAN__FLAGS, NULL,
_gtk_marshal_BOOLEAN__FLAGS,
G_TYPE_BOOLEAN, 1, GDK_TYPE_MODIFIER_TYPE); G_TYPE_BOOLEAN, 1, GDK_TYPE_MODIFIER_TYPE);
g_signal_set_va_marshaller (signals[MODIFIERS],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_BOOLEAN__FLAGSv);
/** /**
* GtkEventControllerKey::im-update: * GtkEventControllerKey::im-update:

View File

@ -31,6 +31,7 @@
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkwidgetprivate.h" #include "gtkwidgetprivate.h"
#include "gtkmarshalers.h"
#include "gtkeventcontrollerprivate.h" #include "gtkeventcontrollerprivate.h"
#include "gtkeventcontrollermotion.h" #include "gtkeventcontrollermotion.h"
#include "gtktypebuiltins.h" #include "gtktypebuiltins.h"
@ -256,13 +257,16 @@ gtk_event_controller_motion_class_init (GtkEventControllerMotionClass *klass)
GTK_TYPE_EVENT_CONTROLLER_MOTION, GTK_TYPE_EVENT_CONTROLLER_MOTION,
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, NULL, NULL, 0, NULL, NULL,
NULL, _gtk_marshal_VOID__DOUBLE_DOUBLE_ENUM_ENUM,
G_TYPE_NONE, G_TYPE_NONE,
4, 4,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
GDK_TYPE_CROSSING_MODE, GDK_TYPE_CROSSING_MODE,
GDK_TYPE_NOTIFY_TYPE); GDK_TYPE_NOTIFY_TYPE);
g_signal_set_va_marshaller (signals[ENTER],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLE_ENUM_ENUMv);
/** /**
* GtkEventControllerMotion::leave: * GtkEventControllerMotion::leave:
@ -277,11 +281,14 @@ gtk_event_controller_motion_class_init (GtkEventControllerMotionClass *klass)
GTK_TYPE_EVENT_CONTROLLER_MOTION, GTK_TYPE_EVENT_CONTROLLER_MOTION,
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, NULL, NULL, 0, NULL, NULL,
NULL, _gtk_marshal_VOID__ENUM_ENUM,
G_TYPE_NONE, G_TYPE_NONE,
2, 2,
GDK_TYPE_CROSSING_MODE, GDK_TYPE_CROSSING_MODE,
GDK_TYPE_NOTIFY_TYPE); GDK_TYPE_NOTIFY_TYPE);
g_signal_set_va_marshaller (signals[LEAVE],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__ENUM_ENUMv);
/** /**
* GtkEventControllerMotion::motion: * GtkEventControllerMotion::motion:
@ -296,8 +303,11 @@ gtk_event_controller_motion_class_init (GtkEventControllerMotionClass *klass)
GTK_TYPE_EVENT_CONTROLLER_MOTION, GTK_TYPE_EVENT_CONTROLLER_MOTION,
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, NULL, NULL, 0, NULL, NULL,
NULL, _gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[MOTION],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
} }
static void static void

View File

@ -123,6 +123,7 @@
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkmain.h" #include "gtkmain.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtknative.h" #include "gtknative.h"
typedef struct _GtkGesturePrivate GtkGesturePrivate; typedef struct _GtkGesturePrivate GtkGesturePrivate;
@ -880,9 +881,13 @@ gtk_gesture_class_init (GtkGestureClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureClass, sequence_state_changed), G_STRUCT_OFFSET (GtkGestureClass, sequence_state_changed),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__BOXED_ENUM,
G_TYPE_NONE, 2, GDK_TYPE_EVENT_SEQUENCE, G_TYPE_NONE, 2, GDK_TYPE_EVENT_SEQUENCE,
GTK_TYPE_EVENT_SEQUENCE_STATE); GTK_TYPE_EVENT_SEQUENCE_STATE);
g_signal_set_va_marshaller (signals[SEQUENCE_STATE_CHANGED],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__BOXED_ENUMv);
} }
static void static void

View File

@ -40,6 +40,7 @@
#include "gtkgestureclickprivate.h" #include "gtkgestureclickprivate.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
typedef struct _GtkGestureClickPrivate GtkGestureClickPrivate; typedef struct _GtkGestureClickPrivate GtkGestureClickPrivate;
@ -365,9 +366,13 @@ gtk_gesture_click_class_init (GtkGestureClickClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureClickClass, pressed), G_STRUCT_OFFSET (GtkGestureClickClass, pressed),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__INT_DOUBLE_DOUBLE,
G_TYPE_NONE, 3, G_TYPE_INT, G_TYPE_NONE, 3, G_TYPE_INT,
G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[PRESSED],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__INT_DOUBLE_DOUBLEv);
/** /**
* GtkGestureClick::released: * GtkGestureClick::released:
@ -386,9 +391,13 @@ gtk_gesture_click_class_init (GtkGestureClickClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureClickClass, released), G_STRUCT_OFFSET (GtkGestureClickClass, released),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__INT_DOUBLE_DOUBLE,
G_TYPE_NONE, 3, G_TYPE_INT, G_TYPE_NONE, 3, G_TYPE_INT,
G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[RELEASED],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__INT_DOUBLE_DOUBLEv);
/** /**
* GtkGestureClick::stopped: * GtkGestureClick::stopped:
* @gesture: the object which received the signal * @gesture: the object which received the signal
@ -422,10 +431,14 @@ gtk_gesture_click_class_init (GtkGestureClickClass *klass)
g_signal_new (I_("unpaired-release"), g_signal_new (I_("unpaired-release"),
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL, 0, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE_UINT_BOXED,
G_TYPE_NONE, 4, G_TYPE_NONE, 4,
G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE, G_TYPE_DOUBLE,
G_TYPE_UINT, GDK_TYPE_EVENT_SEQUENCE); G_TYPE_UINT, GDK_TYPE_EVENT_SEQUENCE);
g_signal_set_va_marshaller (signals[UNPAIRED_RELEASE],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLE_UINT_BOXEDv);
} }
static void static void

View File

@ -34,6 +34,7 @@
#include "gtkgesturedrag.h" #include "gtkgesturedrag.h"
#include "gtkgesturedragprivate.h" #include "gtkgesturedragprivate.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
typedef struct _GtkGestureDragPrivate GtkGestureDragPrivate; typedef struct _GtkGestureDragPrivate GtkGestureDragPrivate;
typedef struct _EventData EventData; typedef struct _EventData EventData;
@ -154,8 +155,12 @@ gtk_gesture_drag_class_init (GtkGestureDragClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureDragClass, drag_begin), 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_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: * GtkGestureDrag::drag-update:
* @gesture: the object which received the signal * @gesture: the object which received the signal
@ -169,8 +174,12 @@ gtk_gesture_drag_class_init (GtkGestureDragClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureDragClass, drag_update), 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_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: * GtkGestureDrag::drag-end:
* @gesture: the object which received the signal * @gesture: the object which received the signal
@ -184,8 +193,12 @@ gtk_gesture_drag_class_init (GtkGestureDragClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureDragClass, drag_end), 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_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 static void

View File

@ -40,6 +40,7 @@
#include "gtkdnd.h" #include "gtkdnd.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
typedef struct _GtkGestureLongPressPrivate GtkGestureLongPressPrivate; typedef struct _GtkGestureLongPressPrivate GtkGestureLongPressPrivate;
@ -303,8 +304,12 @@ gtk_gesture_long_press_class_init (GtkGestureLongPressClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureLongPressClass, pressed), 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_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: * GtkGestureLongPress::cancelled:
* @gesture: the object which received the signal * @gesture: the object which received the signal

View File

@ -44,6 +44,7 @@
#include "gtktypebuiltins.h" #include "gtktypebuiltins.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
typedef struct _GtkGesturePanPrivate GtkGesturePanPrivate; typedef struct _GtkGesturePanPrivate GtkGesturePanPrivate;
@ -252,9 +253,13 @@ gtk_gesture_pan_class_init (GtkGesturePanClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGesturePanClass, pan), G_STRUCT_OFFSET (GtkGesturePanClass, pan),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__ENUM_DOUBLE,
G_TYPE_NONE, 2, GTK_TYPE_PAN_DIRECTION, G_TYPE_NONE, 2, GTK_TYPE_PAN_DIRECTION,
G_TYPE_DOUBLE); G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[PAN],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__ENUM_DOUBLEv);
} }
static void static void

View File

@ -242,8 +242,12 @@ gtk_gesture_rotate_class_init (GtkGestureRotateClass *klass)
GTK_TYPE_GESTURE_ROTATE, GTK_TYPE_GESTURE_ROTATE,
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkGestureRotateClass, angle_changed), G_STRUCT_OFFSET (GtkGestureRotateClass, angle_changed),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[ANGLE_CHANGED],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
} }
/** /**

View File

@ -32,6 +32,7 @@
#include "gtkgesturestylusprivate.h" #include "gtkgesturestylusprivate.h"
#include "gtkprivate.h" #include "gtkprivate.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtkmain.h" #include "gtkmain.h"
G_DEFINE_TYPE (GtkGestureStylus, gtk_gesture_stylus, GTK_TYPE_GESTURE_SINGLE) G_DEFINE_TYPE (GtkGestureStylus, gtk_gesture_stylus, GTK_TYPE_GESTURE_SINGLE)
@ -99,29 +100,48 @@ gtk_gesture_stylus_class_init (GtkGestureStylusClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureStylusClass, proximity), G_STRUCT_OFFSET (GtkGestureStylusClass, proximity),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[PROXIMITY],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
signals[DOWN] = signals[DOWN] =
g_signal_new (I_("down"), g_signal_new (I_("down"),
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureStylusClass, down), G_STRUCT_OFFSET (GtkGestureStylusClass, down),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[DOWN],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
signals[MOTION] = signals[MOTION] =
g_signal_new (I_("motion"), g_signal_new (I_("motion"),
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureStylusClass, motion), G_STRUCT_OFFSET (GtkGestureStylusClass, motion),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[MOTION],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
signals[UP] = signals[UP] =
g_signal_new (I_("up"), g_signal_new (I_("up"),
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureStylusClass, up), G_STRUCT_OFFSET (GtkGestureStylusClass, up),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[UP],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
} }
static void static void

View File

@ -41,6 +41,7 @@
#include "gtkgestureprivate.h" #include "gtkgestureprivate.h"
#include "gtkmarshalers.h" #include "gtkmarshalers.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
#define CAPTURE_THRESHOLD_MS 150 #define CAPTURE_THRESHOLD_MS 150
@ -237,8 +238,12 @@ gtk_gesture_swipe_class_init (GtkGestureSwipeClass *klass)
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGestureSwipeClass, swipe), G_STRUCT_OFFSET (GtkGestureSwipeClass, swipe),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__DOUBLE_DOUBLE,
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE); G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
g_signal_set_va_marshaller (signals[SWIPE],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
} }
static void static void

View File

@ -23,6 +23,7 @@
#include "config.h" #include "config.h"
#include "gtkglarea.h" #include "gtkglarea.h"
#include "gtkintl.h" #include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtkstylecontext.h" #include "gtkstylecontext.h"
#include "gtkmarshalers.h" #include "gtkmarshalers.h"
#include "gtkprivate.h" #include "gtkprivate.h"
@ -896,9 +897,12 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkGLAreaClass, render), G_STRUCT_OFFSET (GtkGLAreaClass, render),
_gtk_boolean_handled_accumulator, NULL, _gtk_boolean_handled_accumulator, NULL,
NULL, _gtk_marshal_BOOLEAN__OBJECT,
G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN, 1,
GDK_TYPE_GL_CONTEXT); GDK_TYPE_GL_CONTEXT);
g_signal_set_va_marshaller (area_signals[RENDER],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_BOOLEAN__OBJECTv);
/** /**
* GtkGLArea::resize: * GtkGLArea::resize:
@ -924,6 +928,9 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__INT_INT, _gtk_marshal_VOID__INT_INT,
G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT); G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_INT);
g_signal_set_va_marshaller (area_signals[RESIZE],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_VOID__INT_INTv);
/** /**
* GtkGLArea::create-context: * GtkGLArea::create-context:
@ -951,6 +958,9 @@ gtk_gl_area_class_init (GtkGLAreaClass *klass)
create_context_accumulator, NULL, create_context_accumulator, NULL,
_gtk_marshal_OBJECT__VOID, _gtk_marshal_OBJECT__VOID,
GDK_TYPE_GL_CONTEXT, 0); GDK_TYPE_GL_CONTEXT, 0);
g_signal_set_va_marshaller (area_signals[CREATE_CONTEXT],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_OBJECT__VOIDv);
} }
static void static void

View File

@ -26,8 +26,10 @@ BOOLEAN:BOXED,BOXED
BOOLEAN:DOUBLE,DOUBLE BOOLEAN:DOUBLE,DOUBLE
BOOLEAN:ENUM BOOLEAN:ENUM
BOOLEAN:ENUM,BOOLEAN BOOLEAN:ENUM,BOOLEAN
BOOLEAN:ENUM,BOXED,BOXED,BOXED
BOOLEAN:ENUM,DOUBLE BOOLEAN:ENUM,DOUBLE
BOOLEAN:ENUM,INT BOOLEAN:ENUM,INT
BOOLEAN:FLAGS
BOOLEAN:OBJECT BOOLEAN:OBJECT
BOOLEAN:OBJECT,UINT,FLAGS BOOLEAN:OBJECT,UINT,FLAGS
BOOLEAN:OBJECT,INT,INT BOOLEAN:OBJECT,INT,INT
@ -42,6 +44,7 @@ BOOLEAN:INT,INT
BOOLEAN:INT,INT,INT BOOLEAN:INT,INT,INT
BOOLEAN:INT,INT,BOOLEAN,OBJECT BOOLEAN:INT,INT,BOOLEAN,OBJECT
BOOLEAN:UINT BOOLEAN:UINT
BOOLEAN:UINT,UINT,FLAGS
BOOLEAN:VOID BOOLEAN:VOID
BOOLEAN:BOOLEAN BOOLEAN:BOOLEAN
BOOLEAN:BOOLEAN,BOOLEAN,BOOLEAN BOOLEAN:BOOLEAN,BOOLEAN,BOOLEAN
@ -49,18 +52,23 @@ BOOLEAN:STRING
ENUM:ENUM ENUM:ENUM
ENUM:VOID ENUM:VOID
INT:POINTER INT:POINTER
INT:DOUBLE,DOUBLE
OBJECT:VOID OBJECT:VOID
STRING:DOUBLE STRING:DOUBLE
STRING:STRING STRING:STRING
VOID:DOUBLE,DOUBLE
VOID:BOOLEAN,BOOLEAN,BOOLEAN VOID:BOOLEAN,BOOLEAN,BOOLEAN
VOID:BOXED,BOXED VOID:BOXED,BOXED
VOID:BOXED,BOXED,POINTER VOID:BOXED,BOXED,POINTER
VOID:BOXED,ENUM
VOID:BOXED,OBJECT VOID:BOXED,OBJECT
VOID:BOXED,STRING,INT VOID:BOXED,STRING,INT
VOID:BOXED,UINT VOID:BOXED,UINT
VOID:BOXED,UINT,FLAGS VOID:BOXED,UINT,FLAGS
VOID:DOUBLE,DOUBLE
VOID:DOUBLE,DOUBLE,ENUM,ENUM
VOID:DOUBLE,DOUBLE,UINT,BOXED
VOID:ENUM,BOOLEAN VOID:ENUM,BOOLEAN
VOID:ENUM,DOUBLE
VOID:ENUM,ENUM VOID:ENUM,ENUM
VOID:ENUM,FLOAT VOID:ENUM,FLOAT
VOID:ENUM,FLOAT,BOOLEAN VOID:ENUM,FLOAT,BOOLEAN
@ -70,6 +78,7 @@ VOID:ENUM,INT,INT
VOID:ENUM,OBJECT VOID:ENUM,OBJECT
VOID:ENUM,STRING VOID:ENUM,STRING
VOID:INT,BOOLEAN VOID:INT,BOOLEAN
VOID:INT,DOUBLE,DOUBLE
VOID:INT,INT VOID:INT,INT
VOID:INT,INT,BOXED VOID:INT,INT,BOXED
VOID:INT,INT,INT VOID:INT,INT,INT
@ -107,12 +116,12 @@ VOID:STRING,INT,POINTER
VOID:STRING,UINT,FLAGS VOID:STRING,UINT,FLAGS
VOID:STRING,UINT,FLAGS,UINT VOID:STRING,UINT,FLAGS,UINT
VOID:UINT,FLAGS,BOXED VOID:UINT,FLAGS,BOXED
VOID:UINT,UINT
VOID:UINT,STRING VOID:UINT,STRING
VOID:UINT,BOXED,UINT,FLAGS,FLAGS VOID:UINT,BOXED,UINT,FLAGS,FLAGS
VOID:UINT,OBJECT,UINT,FLAGS,FLAGS VOID:UINT,OBJECT,UINT,FLAGS,FLAGS
VOID:UINT,STRING,UINT VOID:UINT,STRING,UINT
VOID:UINT,UINT VOID:UINT,UINT
VOID:UINT,UINT,FLAGS
OBJECT:OBJECT,INT,INT OBJECT:OBJECT,INT,INT
VOID:OBJECT,STRING,POINTER,POINTER VOID:OBJECT,STRING,POINTER,POINTER
INT:INT INT:INT

View File

@ -2234,10 +2234,14 @@ gtk_places_view_class_init (GtkPlacesViewClass *klass)
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkPlacesViewClass, open_location), G_STRUCT_OFFSET (GtkPlacesViewClass, open_location),
NULL, NULL, NULL, NULL, NULL,
_gtk_marshal_VOID__OBJECT_FLAGS,
G_TYPE_NONE, 2, G_TYPE_NONE, 2,
G_TYPE_OBJECT, G_TYPE_OBJECT,
GTK_TYPE_PLACES_OPEN_FLAGS); GTK_TYPE_PLACES_OPEN_FLAGS);
g_signal_set_va_marshaller (places_view_signals [OPEN_LOCATION],
G_TYPE_FROM_CLASS (object_class),
_gtk_marshal_VOID__OBJECT_FLAGSv);
/* /*
* GtkPlacesView::show-error-message: * GtkPlacesView::show-error-message:

View File

@ -771,8 +771,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
g_signal_new (I_("edge-overshot"), g_signal_new (I_("edge-overshot"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, 0, G_SIGNAL_RUN_LAST, 0,
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_generic,
G_TYPE_NONE, 1, GTK_TYPE_POSITION_TYPE); G_TYPE_NONE, 1, GTK_TYPE_POSITION_TYPE);
/** /**
@ -794,8 +793,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
g_signal_new (I_("edge-reached"), g_signal_new (I_("edge-reached"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, 0, G_SIGNAL_RUN_LAST, 0,
NULL, NULL, NULL, NULL, NULL,
g_cclosure_marshal_generic,
G_TYPE_NONE, 1, GTK_TYPE_POSITION_TYPE); G_TYPE_NONE, 1, GTK_TYPE_POSITION_TYPE);
binding_set = gtk_binding_set_by_class (class); binding_set = gtk_binding_set_by_class (class);

View File

@ -1349,12 +1349,15 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextViewClass, extend_selection), G_STRUCT_OFFSET (GtkTextViewClass, extend_selection),
_gtk_boolean_handled_accumulator, NULL, _gtk_boolean_handled_accumulator, NULL,
NULL, /* generic marshaller */ _gtk_marshal_BOOLEAN__ENUM_BOXED_BOXED_BOXED,
G_TYPE_BOOLEAN, 4, G_TYPE_BOOLEAN, 4,
GTK_TYPE_TEXT_EXTEND_SELECTION, GTK_TYPE_TEXT_EXTEND_SELECTION,
GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE, GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE,
GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE, GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE,
GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE); GTK_TYPE_TEXT_ITER | G_SIGNAL_TYPE_STATIC_SCOPE);
g_signal_set_va_marshaller (signals[EXTEND_SELECTION],
G_TYPE_FROM_CLASS (klass),
_gtk_marshal_BOOLEAN__ENUM_BOXED_BOXED_BOXEDv);
/** /**
* GtkTextView::insert-emoji: * GtkTextView::insert-emoji: