From 071576b6e7b3d979c1fcefd611b67bac171f2877 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Thu, 10 Oct 2013 15:46:54 +0200 Subject: Replace 'mute' boolean by a flag in the SoundMenu constructor This makes the code calling the constructor more readable and allows for extensibility. --- src/service.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/service.vala') diff --git a/src/service.vala b/src/service.vala index 1611608..9c75044 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 (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.NONE)); this.menus.@foreach ( (profile, menu) => { this.volume_control.bind_property ("active-mic", menu, "show-mic-volume", BindingFlags.SYNC_CREATE); -- cgit v1.2.3