surface: Add marshallers for new events

This way, sysprof can profile through the signal emission, and for
signals this low in the stack, this is very useful.
This commit is contained in:
Benjamin Otte 2019-05-28 19:18:35 +02:00
parent 81548911de
commit 096d28e60c
2 changed files with 10 additions and 2 deletions

View File

@ -1,2 +1,4 @@
BOOLEAN:BOXED
BOOLEAN:OBJECT
BOOLEAN:POINTER
VOID:POINTER,POINTER,BOOLEAN,BOOLEAN

View File

@ -367,10 +367,13 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
0,
g_signal_accumulator_true_handled,
NULL,
NULL,
_gdk_marshal_BOOLEAN__BOXED,
G_TYPE_BOOLEAN,
1,
CAIRO_GOBJECT_TYPE_REGION);
g_signal_set_va_marshaller (signals[RENDER],
G_OBJECT_CLASS_TYPE (object_class),
_gdk_marshal_BOOLEAN__BOXEDv);
/**
* GdkSurface::event:
@ -388,10 +391,13 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
0,
g_signal_accumulator_true_handled,
NULL,
NULL,
_gdk_marshal_BOOLEAN__OBJECT,
G_TYPE_BOOLEAN,
1,
GDK_TYPE_EVENT);
g_signal_set_va_marshaller (signals[EVENT],
G_OBJECT_CLASS_TYPE (object_class),
_gdk_marshal_BOOLEAN__OBJECTv);
}
static void