aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service.vala21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/service.vala b/src/service.vala
index 3edcba0..93e6a51 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -395,30 +395,9 @@ public class IndicatorSound.Service: Object {
this.volume_control.notify["high_volume"].connect( () =>
high_volume_action.set_state(new Variant.boolean (this.volume_control.high_volume)));
- /* So this is a bit confusing, putting it here because everywhere else
- sucks too. It might create an action and put it into the action group.
- Which is sneaky. Better to have the code not duplicated, but no good
- place to put code like that. */
- setup_high_volume_menu_action();
-
return high_volume_action;
}
- void setup_high_volume_menu_action () {
- this.volume_control.notify["high_volume"].connect(update_high_volume_menu_action);
- update_high_volume_menu_action();
- }
-
- void update_high_volume_menu_action () {
- if (this.volume_control.high_volume) {
- var menu_action = new SimpleAction("high-volume-menu", null);
- menu_action.set_enabled(false);
- this.actions.add_action(menu_action);
- } else {
- this.actions.remove_action("high-volume-menu");
- }
- }
-
void bus_acquired (DBusConnection connection, string name) {
try {
connection.export_action_group ("/com/canonical/indicator/sound", this.actions);