projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1ec82
)
actor: Fix get_transition() method
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Thu, 15 Mar 2012 17:31:36 +0000
(17:31 +0000)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Thu, 15 Mar 2012 17:31:36 +0000
(17:31 +0000)
We now store a closure, not directly a ClutterTransition instance.
clutter/clutter-actor.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-actor.c
b/clutter/clutter-actor.c
index
0c3f202
..
3bd31a8
100644
(file)
--- 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;
}
/**