From e0f41fa166665e099d894cc367346b6cafcd4634 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sat, 10 Apr 2010 17:02:42 +0100 Subject: [PATCH] actor: Flag the color argument of the ::pick signal as being constant When emitting signals, one can mark arguments as being "static", ie an indication this argument will not change during the signal emission. This allows the signal marshalling code to create static GValues, in this case not to copy the Color. http://bugzilla.openedhand.com/show_bug.cgi?id=2073 --- clutter/clutter-actor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 616d3db81..87b2d573e 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -4494,7 +4494,7 @@ clutter_actor_class_init (ClutterActorClass *klass) NULL, NULL, clutter_marshal_VOID__BOXED, G_TYPE_NONE, 1, - CLUTTER_TYPE_COLOR); + CLUTTER_TYPE_COLOR | G_SIGNAL_TYPE_STATIC_SCOPE); /** * ClutterActor::allocation-changed: