diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-09-11 11:34:31 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-09-11 11:34:31 -0500 |
commit | 06d21070a78bdcaac4b1b23384ae5791f8d0f5ff (patch) | |
tree | c2dd665b90e6ada5008adbf3336c50a551904727 /src | |
parent | 2da9d7c1bb979d47cca34de8875d3e9e90a2644a (diff) | |
download | ayatana-indicator-datetime-06d21070a78bdcaac4b1b23384ae5791f8d0f5ff.tar.gz ayatana-indicator-datetime-06d21070a78bdcaac4b1b23384ae5791f8d0f5ff.tar.bz2 ayatana-indicator-datetime-06d21070a78bdcaac4b1b23384ae5791f8d0f5ff.zip |
add 'title' to the root action's state dict
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 0928205..3ba1c24 100644 --- a/src/service.c +++ b/src/service.c @@ -453,6 +453,7 @@ create_desktop_header_state (IndicatorDatetimeService * self) gchar * str; gboolean visible; GDateTime * now; + const gchar * title = _("Date and Time"); visible = g_settings_get_boolean (self->priv->settings, SETTINGS_SHOW_CLOCK_S); @@ -469,6 +470,7 @@ create_desktop_header_state (IndicatorDatetimeService * self) g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT); g_variant_builder_add (&b, "{sv}", "accessible-desc", g_variant_new_string (str)); g_variant_builder_add (&b, "{sv}", "label", g_variant_new_take_string (str)); + g_variant_builder_add (&b, "{sv}", "title", g_variant_new_string (title)); g_variant_builder_add (&b, "{sv}", "visible", g_variant_new_boolean (visible)); /* cleanup */ @@ -489,6 +491,7 @@ create_phone_header_state (IndicatorDatetimeService * self) gchar * label; gboolean has_alarms; gchar * a11y; + const gchar * title = _("Date and Time"); g_variant_builder_init (&b, G_VARIANT_TYPE_VARDICT); @@ -515,6 +518,7 @@ create_phone_header_state (IndicatorDatetimeService * self) g_variant_new_take_string (a11y)); g_variant_builder_add (&b, "{sv}", "visible", g_variant_new_boolean (TRUE)); + g_variant_builder_add (&b, "{sv}", "title", g_variant_new_string (title)); g_variant_builder_add (&b, "{sv}", "label", g_variant_new_take_string (label)); /* cleanup */ |