[clutter] actor: Annotate the allocation-changed signal
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] actor: Annotate the allocation-changed signal
- Date: Mon, 5 Mar 2012 11:23:11 +0000 (UTC)
commit 2aaa39e0080a180689f53f82bccda36bc400f885
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Mar 5 10:36:03 2012 +0000
actor: Annotate the allocation-changed signal
The ActorBox passed to the ::allocation-changed signal should be
annotated as STATIC_SCOPE, given that it's a pointer to a structure
inside ClutterActorPrivate - hence there's no risk of it actually being
freed from a signal handler. This allows the GSignal machinery to avoid
a costly copy/free for each signal emission.
clutter/clutter-actor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 3dd40c1..f84d7cf 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -6444,7 +6444,7 @@ clutter_actor_class_init (ClutterActorClass *klass)
NULL, NULL,
_clutter_marshal_VOID__BOXED_FLAGS,
G_TYPE_NONE, 2,
- CLUTTER_TYPE_ACTOR_BOX,
+ CLUTTER_TYPE_ACTOR_BOX | G_SIGNAL_TYPE_STATIC_SCOPE,
CLUTTER_TYPE_ALLOCATION_FLAGS);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]