aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-12-03 09:52:32 -0600
committerTed Gould <ted@gould.cx>2014-12-03 09:52:32 -0600
commit57982f343b03175c20a4b51ccb5c853588613935 (patch)
tree9180d1df5c69b847cfbf827c834214115efaa2d4 /src/sound-menu.vala
parentf6505dfead05c0e341d7ece63510e621a45e0325 (diff)
downloadayatana-indicator-sound-57982f343b03175c20a4b51ccb5c853588613935.tar.gz
ayatana-indicator-sound-57982f343b03175c20a4b51ccb5c853588613935.tar.bz2
ayatana-indicator-sound-57982f343b03175c20a4b51ccb5c853588613935.zip
Add an action to track whether the indicator is shown so that we can not show notifications if it is open
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 3881faf..96dd143 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -60,6 +60,7 @@ public class SoundMenu: Object
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_attribute ("submenu-action", "s", "indicator.indicator-shown");
root_item.set_submenu (this.menu);
this.root = new Menu ();