aboutsummaryrefslogtreecommitdiff
path: root/src/clock.h
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.h
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.h')
-rw-r--r--src/clock.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clock.h b/src/clock.h
index 0c10dab..40cdf1c 100644
--- a/src/clock.h
+++ b/src/clock.h
@@ -54,7 +54,7 @@ struct _IndicatorDatetimeClockInterface
void (*changed) (IndicatorDatetimeClock * self);
/* virtual functions */
- gchar** (*get_timezones) (IndicatorDatetimeClock * self);
+ const gchar** (*get_timezones) (IndicatorDatetimeClock * self);
GDateTime* (*get_localtime) (IndicatorDatetimeClock * self);
};
@@ -64,11 +64,11 @@ GType indicator_datetime_clock_get_type (void);
****
***/
-gchar ** indicator_datetime_clock_get_timezones (IndicatorDatetimeClock * clock);
+const gchar ** indicator_datetime_clock_get_timezones (IndicatorDatetimeClock * clock);
-GDateTime * indicator_datetime_clock_get_localtime (IndicatorDatetimeClock * clock);
+GDateTime * indicator_datetime_clock_get_localtime (IndicatorDatetimeClock * clock);
-void indicator_datetime_clock_emit_changed (IndicatorDatetimeClock * clock);
+void indicator_datetime_clock_emit_changed (IndicatorDatetimeClock * clock);
G_END_DECLS