aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcus Tomlinson <marcus.tomlinson@canonical.com>2013-10-10 16:24:18 +0200
committerMarcus Tomlinson <marcus.tomlinson@canonical.com>2013-10-10 16:24:18 +0200
commitf192ac00d09deab88849ed4676d3ef979d265367 (patch)
tree918284a8c7add9f24c95a4d95368d31305597ee2 /src
parentb3d3cbe0763229b5285feb5657d72af21981f0da (diff)
downloadayatana-indicator-power-f192ac00d09deab88849ed4676d3ef979d265367.tar.gz
ayatana-indicator-power-f192ac00d09deab88849ed4676d3ef979d265367.tar.bz2
ayatana-indicator-power-f192ac00d09deab88849ed4676d3ef979d265367.zip
Added "torch-on" and "torch-off" icons to brightness slider menu item.
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;
}