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
@ -1969,8 +1969,13 @@ clutter_state_get_duration (ClutterState *state,
|
|||||||
if (target_state != NULL)
|
if (target_state != NULL)
|
||||||
{
|
{
|
||||||
if (source_state_name)
|
if (source_state_name)
|
||||||
|
{
|
||||||
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
|
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
|
||||||
source_state_name));
|
source_state_name));
|
||||||
|
if(!ret)
|
||||||
|
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
|
||||||
|
NULL));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
|
ret = GPOINTER_TO_INT (g_hash_table_lookup (target_state->durations,
|
||||||
NULL));
|
NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user