aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-09-09 13:34:02 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-09-09 13:34:02 +0200
commit5d5353c5b761b0adc272e4826690d90984b9413f (patch)
treeb50f47c6e84a8f3216f64d4a601790ea73c12ced /src/sound-menu.vala
parent246d7c9daec13ed936f80097b69b3631874f7d4c (diff)
downloadayatana-indicator-sound-5d5353c5b761b0adc272e4826690d90984b9413f.tar.gz
ayatana-indicator-sound-5d5353c5b761b0adc272e4826690d90984b9413f.tar.bz2
ayatana-indicator-sound-5d5353c5b761b0adc272e4826690d90984b9413f.zip
Change volume when scrolling on the indicator
This depends on a new root menu property: x-canonical-scroll-action. It points to an action that gets activated whenever the user scrolls the mouse over the indicator. The parameter of that action signifies the magnitude and direction of the scroll.
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r--src/sound-menu.vala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index 415a5be..7ac8930 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -40,6 +40,7 @@ class SoundMenu: Object
var root_item = new MenuItem (null, "indicator.root");
root_item.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.root");
+ root_item.set_attribute ("x-canonical-scroll-action", "s", "indicator.scroll");
root_item.set_submenu (this.menu);
this.root = new Menu ();