aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-14 10:16:15 -0500
committerTed Gould <ted@gould.cx>2014-10-14 10:16:15 -0500
commit8e7cbaadfed452063b2d659bc679746cad5cbb14 (patch)
tree710902a2af2e07f7deb9626d1f27fedcd2c44ea6
parent16828d0102efae82bf760097988474e434b884fd (diff)
downloadayatana-indicator-sound-8e7cbaadfed452063b2d659bc679746cad5cbb14.tar.gz
ayatana-indicator-sound-8e7cbaadfed452063b2d659bc679746cad5cbb14.tar.bz2
ayatana-indicator-sound-8e7cbaadfed452063b2d659bc679746cad5cbb14.zip
Linking volume control and the menu visibility
-rw-r--r--src/service.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index 51060d4..8f58110 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -61,6 +61,10 @@ public class IndicatorSound.Service: Object {
this.volume_control.bind_property ("active-mic", menu, "show-mic-volume", BindingFlags.SYNC_CREATE);
});
+ this.menus.@foreach ( (profile, menu) => {
+ this.volume_control.bind_property ("high-volume", menu, "show-high-volume-warning", BindingFlags.SYNC_CREATE);
+ });
+
this.sync_preferred_players ();
this.settings.changed["interested-media-players"].connect ( () => {
this.sync_preferred_players ();