diff options
author | Ted Gould <ted@gould.cx> | 2010-07-16 11:26:31 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-07-16 11:26:31 -0500 |
commit | fc454b3d1547e9ece9aa1c9296870f7c8c568aca (patch) | |
tree | 2c7e1d17a17f4afd97baad5db437cb75e2ca2976 /src/indicator-datetime.c | |
parent | 929dd21b5b07e5700ddcd1f83e2a21e1f8611cb4 (diff) | |
download | ayatana-indicator-datetime-fc454b3d1547e9ece9aa1c9296870f7c8c568aca.tar.gz ayatana-indicator-datetime-fc454b3d1547e9ece9aa1c9296870f7c8c568aca.tar.bz2 ayatana-indicator-datetime-fc454b3d1547e9ece9aa1c9296870f7c8c568aca.zip |
Setting the properties only changes things if we're not in custom mode.
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r-- | src/indicator-datetime.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c index c0a682d..1867fda 100644 --- a/src/indicator-datetime.c +++ b/src/indicator-datetime.c @@ -379,19 +379,25 @@ set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec case PROP_SHOW_SECONDS: if (g_value_get_boolean(value) != self->priv->show_seconds) { self->priv->show_seconds = !self->priv->show_seconds; - update = TRUE; + if (self->priv->time_mode != SETTINGS_TIME_CUSTOM) { + update = TRUE; + } } break; case PROP_SHOW_DAY: if (g_value_get_boolean(value) != self->priv->show_day) { self->priv->show_day = !self->priv->show_day; - update = TRUE; + if (self->priv->time_mode != SETTINGS_TIME_CUSTOM) { + update = TRUE; + } } break; case PROP_SHOW_DATE: if (g_value_get_boolean(value) != self->priv->show_date) { self->priv->show_date = !self->priv->show_date; - update = TRUE; + if (self->priv->time_mode != SETTINGS_TIME_CUSTOM) { + update = TRUE; + } } break; case PROP_CUSTOM_TIME_FORMAT: { |