[gtk/wip/chergert/layout-marshaller] surface: add missing va_marshaller for layout signal




commit 15d01d4315d813dd947887ccb761d1896d15abb6
Author: Christian Hergert <chergert redhat com>
Date:   Tue Dec 7 22:21:19 2021 -0800

    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.

 gdk/gdkmarshalers.list | 1 +
 gdk/gdksurface.c       | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdkmarshalers.list b/gdk/gdkmarshalers.list
index 953533e466..8dff932b90 100644
--- a/gdk/gdkmarshalers.list
+++ b/gdk/gdkmarshalers.list
@@ -2,3 +2,4 @@ BOOLEAN:BOXED
 BOOLEAN:OBJECT
 BOOLEAN:POINTER
 VOID:POINTER,POINTER,BOOLEAN,BOOLEAN
+VOID:INT,INT
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 0a279a3729..a8c6cab390 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]