aboutsummaryrefslogtreecommitdiff
path: root/libindicate/indicator.c
diff options
context:
space:
mode:
Diffstat (limited to 'libindicate/indicator.c')
-rw-r--r--libindicate/indicator.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libindicate/indicator.c b/libindicate/indicator.c
index c6df80a..3b6581b 100644
--- a/libindicate/indicator.c
+++ b/libindicate/indicator.c
@@ -244,6 +244,17 @@ indicate_indicator_set_property_icon (IndicateIndicator * indicator, const gchar
}
+void
+indicate_indicator_set_property_time (IndicateIndicator * indicator, const gchar * key, GTimeVal * time)
+{
+ gchar * timestr = g_time_val_to_iso8601(time);
+ if (timestr != NULL) {
+ indicate_indicator_set_property(indicator, key, timestr);
+ g_free(timestr);
+ }
+ return;
+}
+
const gchar *
indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key)
{