Fix instant-recalc property change handling

Despite the actual value, only the gswe_timestamp_calculate_all() was called.
This commit is contained in:
Gergely Polonkai 2014-11-14 16:31:40 +00:00
parent efa7b7fab3
commit 34ded1881f
1 changed files with 5 additions and 1 deletions

View File

@ -385,7 +385,11 @@ gswe_timestamp_set_property(GObject *object,
switch (prop_id) {
case PROP_INSTANT_RECALC:
gswe_timestamp_calculate_all(timestamp, NULL);
timestamp->priv->instant_recalc = g_value_get_boolean(value);
if (timestamp->priv->instant_recalc) {
gswe_timestamp_calculate_all(timestamp, NULL);
}
break;