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
This commit is contained in:
Damien Lespiau 2010-04-10 17:02:42 +01:00
parent 93a5b78e5a
commit e0f41fa166

View File

@ -4494,7 +4494,7 @@ clutter_actor_class_init (ClutterActorClass *klass)
NULL, NULL, NULL, NULL,
clutter_marshal_VOID__BOXED, clutter_marshal_VOID__BOXED,
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
CLUTTER_TYPE_COLOR); CLUTTER_TYPE_COLOR | G_SIGNAL_TYPE_STATIC_SCOPE);
/** /**
* ClutterActor::allocation-changed: * ClutterActor::allocation-changed: