From 8e7aa6d1ba5f62c4525c7d20e674ce8ef579040b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 11 Aug 2015 12:38:58 -0500 Subject: fix invocation to activate_scroll_action --- src/service.vala | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/service.vala') diff --git a/src/service.vala b/src/service.vala index 57c9d4a..994de30 100644 --- a/src/service.vala +++ b/src/service.vala @@ -192,7 +192,7 @@ public class IndicatorSound.Service: Object { const double volume_step_percentage = 0.06; - void activate_scroll_action (SimpleAction action, Variant? param) { + private void activate_scroll_action (SimpleAction action, Variant? param) { int delta = param.get_int32(); /* positive for up, negative for down */ double v = volume_control.volume.volume + volume_step_percentage * delta; volume_control.set_volume_clamp (v, VolumeControl.VolumeReasons.USER_KEYPRESS); @@ -272,7 +272,7 @@ public class IndicatorSound.Service: Object { private bool notify_server_supports_sync = false; private bool block_info_notifications = false; - void update_notification () { + private void update_notification () { if (!notify_server_caps_checked) { List caps = Notify.get_server_caps (); @@ -419,9 +419,8 @@ public class IndicatorSound.Service: Object { volume_action.set_state(create_volume_action_state()); } - - SimpleAction volume_action; - Action create_volume_action () { + private SimpleAction volume_action; + private Action create_volume_action () { volume_action = new SimpleAction.stateful ("volume", VariantType.INT32, create_volume_action_state()); volume_action.change_state.connect ( (action, val) => { @@ -430,7 +429,7 @@ public class IndicatorSound.Service: Object { }); /* activating this action changes the volume by the amount given in the parameter */ - volume_action.activate.connect ((action, param) => activate_scroll_action()); + volume_action.activate.connect ((a,p) => activate_scroll_action(a,p)); this.volume_control.notify["max-volume"].connect(() => { message("max-volume changed to %f", volume_control.max_volume); -- cgit v1.2.3