Fix calculation of duration for ClutterState default transitions
https://bugzilla.gnome.org/show_bug.cgi?id=659200
This commit is contained in:
parent
14bd6eaad4
commit
fcc2ab7be5
1 changed files with 7 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue