[gtk] surface: Add marshallers for new events
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] surface: Add marshallers for new events
- Date: Tue, 28 May 2019 17:20:12 +0000 (UTC)
commit 096d28e60ca050e2b26e425891ad53882615950f
Author: Benjamin Otte <otte redhat com>
Date: Tue May 28 19:18:35 2019 +0200
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.
gdk/gdkmarshalers.list | 2 ++
gdk/gdksurface.c | 10 ++++++++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkmarshalers.list b/gdk/gdkmarshalers.list
index 1281c143b2..953533e466 100644
--- a/gdk/gdkmarshalers.list
+++ b/gdk/gdkmarshalers.list
@@ -1,2 +1,4 @@
+BOOLEAN:BOXED
+BOOLEAN:OBJECT
BOOLEAN:POINTER
VOID:POINTER,POINTER,BOOLEAN,BOOLEAN
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index b755c27a5c..2ad20b169b 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]