aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Tomlinson <marcus.tomlinson@canonical.com>2013-10-16 15:45:25 +0200
committerMarcus Tomlinson <marcus.tomlinson@canonical.com>2013-10-16 15:45:25 +0200
commitba2b68b8f38555986c10eb57e9425ccca19199de (patch)
tree19354e584e886530c7fcfbe3e767e8bc97da3c9f
parentd5c421bb3c13417865fd2c60221433cfb09af223 (diff)
downloadayatana-indicator-datetime-ba2b68b8f38555986c10eb57e9425ccca19199de.tar.gz
ayatana-indicator-datetime-ba2b68b8f38555986c10eb57e9425ccca19199de.tar.bz2
ayatana-indicator-datetime-ba2b68b8f38555986c10eb57e9425ccca19199de.zip
Fixed datetime title text to read "Date and Time" rather than the day of the week (as per spec).
-rw-r--r--src/service.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/service.c b/src/service.c
index a82e310..0b6a138 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 = _("Date and Time");
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);