aboutsummaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-17 18:15:33 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-10-17 18:15:33 -0500
commit1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d (patch)
tree0807b5e0863dba8ea644f86d68548276f8027860 /src/clock.c
parent758a4880f645242f1c7753990dc46f880a7e9de8 (diff)
downloadayatana-indicator-datetime-1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d.tar.gz
ayatana-indicator-datetime-1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d.tar.bz2
ayatana-indicator-datetime-1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d.zip
cache the timezone strv; lazy-rebuilding it when needed
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clock.c b/src/clock.c
index a5cefee..adfb0eb 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -55,10 +55,10 @@ indicator_datetime_clock_default_init (IndicatorDatetimeClockInterface * klass)
* (transfer full):
* array of timezone strings
*/
-gchar **
+const gchar **
indicator_datetime_clock_get_timezones (IndicatorDatetimeClock * self)
{
- gchar ** timezones;
+ const gchar ** timezones;
IndicatorDatetimeClockInterface * iface;
g_return_val_if_fail (INDICATOR_IS_DATETIME_CLOCK(self), NULL);