From 1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 17 Oct 2013 18:15:33 -0500 Subject: cache the timezone strv; lazy-rebuilding it when needed --- src/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clock.c') 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); -- cgit v1.2.3