aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-09-09 14:11:47 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-09-09 14:11:47 +0200
commit8188fd2fac8516203b90e9da4872c0d8055cb310 (patch)
treed3faad434f9999d4fdb5faf50d25a181eadc144f /src
parent5d5353c5b761b0adc272e4826690d90984b9413f (diff)
downloadayatana-indicator-sound-8188fd2fac8516203b90e9da4872c0d8055cb310.tar.gz
ayatana-indicator-sound-8188fd2fac8516203b90e9da4872c0d8055cb310.tar.bz2
ayatana-indicator-sound-8188fd2fac8516203b90e9da4872c0d8055cb310.zip
Toggle mute on secondary action
This depends on the panel supporting x-canonical-secondary-action on the root menu item.
Diffstat (limited to 'src')
-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 7ac8930..e46f098 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -41,6 +41,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_attribute ("x-canonical-secondary-action", "s", "indicator.mute");
root_item.set_submenu (this.menu);
this.root = new Menu ();