aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-03-27 14:32:06 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-03-27 14:32:06 -0400
commit0386c87d0176c3d539f6cac6f5d52ba1adf9d761 (patch)
treefcadb9036b21fbd7b985fe10f6614460e59d3362 /src/service.vala
parentc3d504bc66bbd360ca6c8d5742a121441dacbfe2 (diff)
downloadayatana-indicator-sound-0386c87d0176c3d539f6cac6f5d52ba1adf9d761.tar.gz
ayatana-indicator-sound-0386c87d0176c3d539f6cac6f5d52ba1adf9d761.tar.bz2
ayatana-indicator-sound-0386c87d0176c3d539f6cac6f5d52ba1adf9d761.zip
VolumeControl: turn "ready" into a property
And bind it to the "enabled" properties of the volume and mute actions.
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala
index cdb5b15..aa6664e 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -86,6 +86,8 @@ public class IndicatorSound.Service {
volume_action.set_state (volume);
});
+ this.volume_control.bind_property ("ready", volume_action, "enabled", BindingFlags.SYNC_CREATE);
+
return volume_action;
}