surface: add missing va_marshaller for layout signal

I saw this coming across through a ffi boundary in Sysprof, and we wanted
to keep most things within GDK using native marshalling to improve
profiler results when frame pointers are not used.
This commit is contained in:
Christian Hergert 2021-12-07 22:21:19 -08:00
parent 348e34f221
commit 15d01d4315
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -605,11 +605,14 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
0,
NULL,
NULL,
NULL,
_gdk_marshal_VOID__INT_INT,
G_TYPE_NONE,
2,
G_TYPE_INT,
G_TYPE_INT);
g_signal_set_va_marshaller (signals[LAYOUT],
G_OBJECT_CLASS_TYPE (object_class),
_gdk_marshal_VOID__INT_INTv);
/**
* GdkSurface::render: