From 3887d25dbc24f64c67daa32268930a336fa84147 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 30 Apr 2017 20:50:28 +0200 Subject: [PATCH] ClutterStage: Use non-generic marshaller for ::presented signal This signal runs often, so it's better to use a direct marshaler. https://bugzilla.gnome.org/show_bug.cgi?id=782344 --- clutter/clutter/clutter-marshal.list | 1 + clutter/clutter/clutter-stage.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-marshal.list b/clutter/clutter/clutter-marshal.list index f6964a11d..0584df03c 100644 --- a/clutter/clutter/clutter-marshal.list +++ b/clutter/clutter/clutter-marshal.list @@ -17,6 +17,7 @@ VOID:BOXED,FLAGS VOID:INT VOID:INT64,INT64,FLOAT,BOOLEAN VOID:INT,INT +VOID:INT,POINTER VOID:FLOAT,FLOAT VOID:INT,INT,INT,INT VOID:OBJECT diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 18dc6d576..c07d0399a 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -2176,8 +2176,8 @@ clutter_stage_class_init (ClutterStageClass *klass) g_signal_new (I_("presented"), G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST, - 0, - NULL, NULL, NULL, + 0, NULL, NULL, + _clutter_marshal_VOID__INT_POINTER, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_POINTER);