diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-08-22 18:36:37 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-08-22 18:36:37 -0500 |
commit | 3c2e7c88bd24441d87a52e702e2e1e985f9abcef (patch) | |
tree | fc9691823d73468337cc6d5cb6eb3a7bc2fb634c | |
parent | f22849a5db346c806bbac042a5c3bb1be9bb68ea (diff) | |
download | ayatana-indicator-power-3c2e7c88bd24441d87a52e702e2e1e985f9abcef.tar.gz ayatana-indicator-power-3c2e7c88bd24441d87a52e702e2e1e985f9abcef.tar.bz2 ayatana-indicator-power-3c2e7c88bd24441d87a52e702e2e1e985f9abcef.zip |
add schema changes from hloeung's branch
-rw-r--r-- | data/com.canonical.indicator.power.gschema.xml.in | 5 | ||||
-rw-r--r-- | src/service.c | 1 |
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, |