aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/com.canonical.indicator.power.gschema.xml.in5
-rw-r--r--src/service.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/data/com.canonical.indicator.power.gschema.xml.in b/data/com.canonical.indicator.power.gschema.xml.in
index 3fb065f..4fd2620 100644
--- a/data/com.canonical.indicator.power.gschema.xml.in
+++ b/data/com.canonical.indicator.power.gschema.xml.in
@@ -10,6 +10,11 @@
<_summary>Show time in Menu Bar</_summary>
<_description>Whether or not to show the time in the menu bar.</_description>
</key>
+ <key name="show-percentage" type="b">
+ <default>false</default>
+ <_summary>Show percentage in Menu Bar</_summary>
+ <_description>Whether or not to show the percentage in the menu bar.</_description>
+ </key>
<key enum="icon-policy-enum" name="icon-policy">
<default>"present"</default>
<_summary>When to show the battery status in the menu bar.</_summary>
diff --git a/src/service.c b/src/service.c
index b59bce3..4aaca3f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -33,6 +33,7 @@
#define SETTINGS_SHOW_TIME_S "show-time"
#define SETTINGS_ICON_POLICY_S "icon-policy"
+#define SETTINGS_SHOW_PERCENTAGE_S "show-percentage"
G_DEFINE_TYPE (IndicatorPowerService,
indicator_power_service,