aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-09-11 11:39:45 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-09-11 11:39:45 -0500
commitce4067c8054de62ac8f54676103253312d80396f (patch)
treeb37f8bd5ac96b320680348418887f84bb049e8b8 /src
parent5507ff922d38d898d021b5246e27a720920e6d23 (diff)
downloadayatana-indicator-power-ce4067c8054de62ac8f54676103253312d80396f.tar.gz
ayatana-indicator-power-ce4067c8054de62ac8f54676103253312d80396f.tar.bz2
ayatana-indicator-power-ce4067c8054de62ac8f54676103253312d80396f.zip
add a title entry to the header action's state
Diffstat (limited to 'src')
-rw-r--r--src/service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index b4f05ea..85d6202 100644
--- a/src/service.c
+++ b/src/service.c
@@ -332,6 +332,8 @@ create_header_state (IndicatorPowerService * self)
g_variant_builder_init (&b, G_VARIANT_TYPE("a{sv}"));
+ g_variant_builder_add (&b, "{sv}", "title", g_variant_new_string (_("Battery")));
+
g_variant_builder_add (&b, "{sv}", "visible",
g_variant_new_boolean (should_be_visible (self)));