[clutter] actor: Fix get_transition() method



commit 5e652b91d65f2daa3c9bb88ec4d2fdfe9e71ac4f
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Mar 15 17:31:36 2012 +0000

    actor: Fix get_transition() method
    
    We now store a closure, not directly a ClutterTransition instance.

 clutter/clutter-actor.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 0c3f202..3bd31a8 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;
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]