aboutsummaryrefslogtreecommitdiff
path: root/src/clock.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-17 17:48:06 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-10-17 17:48:06 -0500
commit758a4880f645242f1c7753990dc46f880a7e9de8 (patch)
treebfa255867fc7069223109ae530ea1b60009dce7b /src/clock.c
parentbcc04892148c7396e638f45e96fcba42d0034ec7 (diff)
downloadayatana-indicator-datetime-758a4880f645242f1c7753990dc46f880a7e9de8.tar.gz
ayatana-indicator-datetime-758a4880f645242f1c7753990dc46f880a7e9de8.tar.bz2
ayatana-indicator-datetime-758a4880f645242f1c7753990dc46f880a7e9de8.zip
cleanup: dead code removal, fix comments, smaller implementation of update_internal_localtime()
Diffstat (limited to 'src/clock.c')
-rw-r--r--src/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clock.c b/src/clock.c
index 1abdd21..a5cefee 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -80,7 +80,7 @@ indicator_datetime_clock_get_timezones (IndicatorDatetimeClock * self)
* the current time.
*/
GDateTime *
-indicator_datetime_clock_get_current_time (IndicatorDatetimeClock * self)
+indicator_datetime_clock_get_localtime (IndicatorDatetimeClock * self)
{
GDateTime * now;
IndicatorDatetimeClockInterface * iface;
@@ -88,8 +88,8 @@ indicator_datetime_clock_get_current_time (IndicatorDatetimeClock * self)
g_return_val_if_fail (INDICATOR_IS_DATETIME_CLOCK(self), NULL);
iface = INDICATOR_DATETIME_CLOCK_GET_INTERFACE(self);
- if (iface->get_current_time != NULL)
- now = iface->get_current_time (self);
+ if (iface->get_localtime != NULL)
+ now = iface->get_localtime (self);
else
now = NULL;