aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcus Tomlinson <marcus.tomlinson@canonical.com>2013-10-15 00:34:24 +0000
committerTarmac <Unknown>2013-10-15 00:34:24 +0000
commit6c9f30f1e5ee6788369e484c6f995802e0da3915 (patch)
tree918284a8c7add9f24c95a4d95368d31305597ee2 /src
parentb3d3cbe0763229b5285feb5657d72af21981f0da (diff)
parentf192ac00d09deab88849ed4676d3ef979d265367 (diff)
downloadayatana-indicator-power-6c9f30f1e5ee6788369e484c6f995802e0da3915.tar.gz
ayatana-indicator-power-6c9f30f1e5ee6788369e484c6f995802e0da3915.tar.bz2
ayatana-indicator-power-6c9f30f1e5ee6788369e484c6f995802e0da3915.zip
Added torch icons to either end of brightness slider. Fixes: https://bugs.launchpad.net/bugs/1227250.
Approved by PS Jenkins bot, Charles Kerr.
Diffstat (limited to 'src')
-rw-r--r--src/service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 5e00370..c70723a 100644
--- a/src/service.c
+++ b/src/service.c
@@ -463,6 +463,9 @@ create_brightness_menuitem (IndicatorPowerService * self)
g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.unity.slider");
g_menu_item_set_attribute (item, "min-value", "d", brightness_to_percentage (self, lo));
g_menu_item_set_attribute (item, "max-value", "d", brightness_to_percentage (self, hi));
+ g_menu_item_set_attribute (item, "min-icon", "s", "torch-off" );
+ g_menu_item_set_attribute (item, "max-icon", "s", "torch-on" );
+
return item;
}