aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-10-14 10:00:32 -0500
committerTed Gould <ted@gould.cx>2014-10-14 10:00:32 -0500
commit23b3fd431a312f2b02504b998c697241c30caa0b (patch)
tree6997d188009cca11121b78e95106e055a7ca483d
parent52e2c2d3dce6ded517f9666d5d0412d56054d9d9 (diff)
downloadayatana-indicator-sound-23b3fd431a312f2b02504b998c697241c30caa0b.tar.gz
ayatana-indicator-sound-23b3fd431a312f2b02504b998c697241c30caa0b.tar.bz2
ayatana-indicator-sound-23b3fd431a312f2b02504b998c697241c30caa0b.zip
Drop the high volume menu action as that wasn't working
-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);