aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-24 08:30:22 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-24 08:30:22 -0500
commit9fd02d4bee0da17318cc665e212c97fec2679ce8 (patch)
tree956377527670ac1ac0222836e148162cd3e7f7d5 /src/service.c
parent6cca65ea889b05a19633f1536ba154ad4b8160ab (diff)
downloadayatana-indicator-power-9fd02d4bee0da17318cc665e212c97fec2679ce8.tar.gz
ayatana-indicator-power-9fd02d4bee0da17318cc665e212c97fec2679ce8.tar.bz2
ayatana-indicator-power-9fd02d4bee0da17318cc665e212c97fec2679ce8.zip
set the phone menu's battery-level action's 'enabled' flag to false so that it won't be clickable, as per the spec.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 4efe2dc..6c9a9c6 100644
--- a/src/service.c
+++ b/src/service.c
@@ -704,6 +704,7 @@ init_gactions (IndicatorPowerService * self)
/* add the power-level action */
a = g_simple_action_new_stateful ("battery-level", NULL, g_variant_new_uint32(0));
+ g_simple_action_set_enabled (a, FALSE);
g_simple_action_group_insert (p->actions, G_ACTION(a));
p->battery_level_action = a;