From 5e652b91d65f2daa3c9bb88ec4d2fdfe9e71ac4f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 15 Mar 2012 17:31:36 +0000 Subject: [PATCH] actor: Fix get_transition() method We now store a closure, not directly a ClutterTransition instance. --- clutter/clutter-actor.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 0c3f20234..3bd31a803 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -17132,7 +17132,11 @@ clutter_actor_get_transition (ClutterActor *self, if (info->transitions == NULL) return NULL; - return g_hash_table_lookup (info->transitions, name); + clos = g_hash_table_lookup (info->transitions, name); + if (clos == NULL) + return NULL; + + return clos->transition; } /**