diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 17:48:06 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 17:48:06 -0500 |
commit | 758a4880f645242f1c7753990dc46f880a7e9de8 (patch) | |
tree | bfa255867fc7069223109ae530ea1b60009dce7b /src/clock.c | |
parent | bcc04892148c7396e638f45e96fcba42d0034ec7 (diff) | |
download | ayatana-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.c | 6 |
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; |