summaryrefslogtreecommitdiff
path: root/clutter
diff options
context:
space:
mode:
authorCraig R. Hughes <craig.git@rungie.com>2011-09-19 09:30:00 -0700
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-09-19 18:29:39 +0100
commitfcc2ab7be594427c0dd2b0570a67ae9c555f1f40 (patch)
tree3334053c1bebed851e8662fb3aa3140c8fcbcf72 /clutter
parent14bd6eaad4672ce488986aa2609a5c0ad69adc2b (diff)
downloadclutter-fcc2ab7be594427c0dd2b0570a67ae9c555f1f40.tar.gz
Fix calculation of duration for ClutterState default transitions
https://bugzilla.gnome.org/show_bug.cgi?id=659200
Diffstat (limited to 'clutter')
-rw-r--r--clutter/clutter-state.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/clutter/clutter-state.c b/clutter/clutter-state.c
index 236ca9075..adb80a454 100644
--- a/clutter/clutter-state.c
+++ b/clutter/clutter-state.c
@@ -1969,8 +1969,13 @@ clutter_state_get_duration (ClutterState *state,
if (target_state != NULL)
{
if (source_state_name)
- ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
- source_state_name));
+ {
+ ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
+ source_state_name));
+ if(!ret)
+ ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
+ NULL));
+ }
else
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
NULL));