aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-24 19:33:47 +0000
committerTarmac <Unknown>2013-10-24 19:33:47 +0000
commit39890de138edeb70c68b72bb5686f557c3ab74aa (patch)
tree8be534d4cc61f60ab1879b84d9bb0818a2f093cf /src/service.vala
parentd12eb5690956a3e5fb35e56a151822bd8a819358 (diff)
parenta66beb0805404bdf8f138fd3a683372487e6e35b (diff)
downloadayatana-indicator-sound-39890de138edeb70c68b72bb5686f557c3ab74aa.tar.gz
ayatana-indicator-sound-39890de138edeb70c68b72bb5686f557c3ab74aa.tar.bz2
ayatana-indicator-sound-39890de138edeb70c68b72bb5686f557c3ab74aa.zip
Only display running players in the phone's sound menu
The design says to only display the _one_ running player. This will have that effect, as there's only one player allowed to run at a time on the phone. Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.vala b/src/service.vala
index e69bca8..393a1ea 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -34,9 +34,9 @@ public class IndicatorSound.Service {
this.actions.add_action (this.create_mic_volume_action ());
this.menus = new HashTable<string, SoundMenu> (str_hash, str_equal);
- this.menus.insert ("desktop_greeter", new SoundMenu (true, null));
- this.menus.insert ("desktop", new SoundMenu (true, "indicator.desktop-settings"));
- this.menus.insert ("phone", new SoundMenu (false, "indicator.phone-settings"));
+ this.menus.insert ("desktop_greeter", new SoundMenu (null, SoundMenu.DisplayFlags.SHOW_MUTE));
+ this.menus.insert ("desktop", new SoundMenu ("indicator.desktop-settings", SoundMenu.DisplayFlags.SHOW_MUTE));
+ this.menus.insert ("phone", new SoundMenu ("indicator.phone-settings", SoundMenu.DisplayFlags.HIDE_INACTIVE_PLAYERS));
this.menus.@foreach ( (profile, menu) => {
this.volume_control.bind_property ("active-mic", menu, "show-mic-volume", BindingFlags.SYNC_CREATE);