aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcus Tomlinson <marcus.tomlinson@canonical.com>2013-10-17 03:20:33 +0000
committerTarmac <Unknown>2013-10-17 03:20:33 +0000
commit3cb74c566f21cead559308c94f3b3995e35e6fa2 (patch)
treec7cc2edae57493ac6529601fb8dbc87672583d2f /src
parent973eb0a480c0c0905fe344230c78d2653661416a (diff)
parentb2bdf943be53745107a7618e6b11c440fcf71387 (diff)
downloadayatana-indicator-datetime-3cb74c566f21cead559308c94f3b3995e35e6fa2.tar.gz
ayatana-indicator-datetime-3cb74c566f21cead559308c94f3b3995e35e6fa2.tar.bz2
ayatana-indicator-datetime-3cb74c566f21cead559308c94f3b3995e35e6fa2.zip
Fixed datetime title text to read "Date and Time" rather than the day of the week (as per spec). Fixes: https://bugs.launchpad.net/bugs/1236400.
Approved by PS Jenkins bot, Charles Kerr.
Diffstat (limited to 'src')
-rw-r--r--src/service.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/service.c b/src/service.c
index c283cf6..ef987d5 100644
--- a/src/service.c
+++ b/src/service.c
@@ -522,7 +522,7 @@ create_phone_header_state (IndicatorDatetimeService * self)
gchar * label;
gboolean has_alarms;
gchar * a11y;
- gchar * title;
+ const gchar * title = _("Upcoming");
g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT);
@@ -550,10 +550,7 @@ create_phone_header_state (IndicatorDatetimeService * self)
g_variant_builder_add (&b, "{sv}", "visible", g_variant_new_boolean (TRUE));
g_variant_builder_add (&b, "{sv}", "label", g_variant_new_take_string (label));
-
- /* title is day-of-week */
- title = g_date_time_format (now, _("%A"));
- g_variant_builder_add (&b, "{sv}", "title", g_variant_new_take_string (title));
+ g_variant_builder_add (&b, "{sv}", "title", g_variant_new_string (title));
/* cleanup */
g_date_time_unref (now);
@@ -686,7 +683,7 @@ create_phone_calendar_section (IndicatorDatetimeService * self)
GMenu * menu = g_menu_new ();
/* strftime(3) format string to show date */
- add_localtime_menuitem (menu, self, _("%e %B %Y"), "calendar");
+ add_localtime_menuitem (menu, self, _("%A, %e %B %Y"), "calendar");
return G_MENU_MODEL (menu);
}