aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-08-11 12:38:58 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-08-11 12:38:58 -0500
commit8e7aa6d1ba5f62c4525c7d20e674ce8ef579040b (patch)
tree90438386a25ccf4e9f293fe15e54610df8b24abf
parent928b62bedbf3787dfd749df2e64714a589bd06ce (diff)
downloadayatana-indicator-sound-8e7aa6d1ba5f62c4525c7d20e674ce8ef579040b.tar.gz
ayatana-indicator-sound-8e7aa6d1ba5f62c4525c7d20e674ce8ef579040b.tar.bz2
ayatana-indicator-sound-8e7aa6d1ba5f62c4525c7d20e674ce8ef579040b.zip
fix invocation to activate_scroll_action
-rw-r--r--src/service.vala11
1 files changed, 5 insertions, 6 deletions
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<string> 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);