diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-07-25 21:06:25 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-07-25 21:06:25 -0500 |
commit | 30d45a522eb83d519f1ee44ebe06a6696d2b094d (patch) | |
tree | 2a4678ee1c5b9f41ce93de6b06bdcedfb1bd563d /src/service.c | |
parent | 7b4baac1d34ce22a570f080066856e229462f606 (diff) | |
download | ayatana-indicator-datetime-30d45a522eb83d519f1ee44ebe06a6696d2b094d.tar.gz ayatana-indicator-datetime-30d45a522eb83d519f1ee44ebe06a6696d2b094d.tar.bz2 ayatana-indicator-datetime-30d45a522eb83d519f1ee44ebe06a6696d2b094d.zip |
in the appointments section, only show the next instance of recurring events. If the event is daily, say so in the time format string.
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 0167d82..8d82355 100644 --- a/src/service.c +++ b/src/service.c @@ -687,7 +687,13 @@ get_appointment_time_format (struct IndicatorDatetimeAppt * appt, GDateTime * n char * fmt; gboolean full_day = g_date_time_difference (appt->end, appt->begin) == G_TIME_SPAN_DAY; - if (full_day) + if (appt->is_daily) + { + char * time_string = generate_format_string_full (FALSE, FALSE); + fmt = join_date_and_time_format_strings (_("Daily"), time_string); + g_free (time_string); + } + else if (full_day) { /* TRANSLATORS: This is a strftime string for the day for full day events in the menu. It should most likely be either '%A' for a full text day |