diff options
author | Ted Gould <ted@canonical.com> | 2009-02-12 08:17:37 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-12 08:17:37 -0600 |
commit | 184a04a0f101e4005794ea72217dda0f452ae97d (patch) | |
tree | 38c82f34a46073fee46336fefeb2c8bc21d81cc0 /libindicate/indicator.c | |
parent | 2717850d777c3d8874f2ff0090c56018aef23b75 (diff) | |
download | libayatana-indicator-184a04a0f101e4005794ea72217dda0f452ae97d.tar.gz libayatana-indicator-184a04a0f101e4005794ea72217dda0f452ae97d.tar.bz2 libayatana-indicator-184a04a0f101e4005794ea72217dda0f452ae97d.zip |
Adding in a time property function
Diffstat (limited to 'libindicate/indicator.c')
-rw-r--r-- | libindicate/indicator.c | 11 |
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) { |