aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-datetime.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-15 16:13:18 -0500
committerTed Gould <ted@gould.cx>2010-07-15 16:13:18 -0500
commit4de10d0ced1994599c040223fcd5012886f3d872 (patch)
tree454a7c3866d469fad0ce65ffd0bf5150f3de6be4 /src/indicator-datetime.c
parent533863c215051dd84213daa03f7aa214f64d11cd (diff)
downloadayatana-indicator-datetime-4de10d0ced1994599c040223fcd5012886f3d872.tar.gz
ayatana-indicator-datetime-4de10d0ced1994599c040223fcd5012886f3d872.tar.bz2
ayatana-indicator-datetime-4de10d0ced1994599c040223fcd5012886f3d872.zip
Clearing set and get property as we're going to have to start from scratch there.
Diffstat (limited to 'src/indicator-datetime.c')
-rw-r--r--src/indicator-datetime.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 52785bb..13d22e3 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -314,28 +314,12 @@ indicator_datetime_finalize (GObject *object)
static void
set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec)
{
- g_return_if_fail(prop_id == PROP_CUSTOM_TIME_FORMAT);
- IndicatorDatetime * self = INDICATOR_DATETIME(object);
-
- if (self->priv->time_format != NULL) {
- g_free(self->priv->time_format);
- self->priv->time_format = NULL;
- }
-
- self->priv->time_format = g_value_dup_string(value);
- g_debug("Changing time format to '%s'", self->priv->time_format);
-
return;
}
static void
get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec)
{
- g_return_if_fail(prop_id == PROP_CUSTOM_TIME_FORMAT);
- IndicatorDatetime * self = INDICATOR_DATETIME(object);
-
- g_value_set_string(value, self->priv->time_format);
-
return;
}
@@ -381,7 +365,7 @@ update_label (IndicatorDatetime * io)
return;
}
- strftime(longstr, 128, self->priv->time_format, ltime);
+ strftime(longstr, 128, self->priv->time_string, ltime);
gchar * utf8 = g_locale_to_utf8(longstr, -1, NULL, NULL, NULL);
gtk_label_set_label(self->priv->label, utf8);