aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRicardo Salveti de Araujo <ricardo.salveti@canonical.com>2014-10-10 00:54:19 -0300
committerRicardo Salveti de Araujo <ricardo.salveti@canonical.com>2014-10-10 00:54:19 -0300
commit486fa2a23d8bc3d3aac18c4de8e4a9e47a19c935 (patch)
treec8917a7ae77499e1390f816e15fad41a89c6630a /src
parentfe008a1d624ae54ae95df3aa4bb0b53bd757721d (diff)
downloadayatana-indicator-sound-486fa2a23d8bc3d3aac18c4de8e4a9e47a19c935.tar.gz
ayatana-indicator-sound-486fa2a23d8bc3d3aac18c4de8e4a9e47a19c935.tar.bz2
ayatana-indicator-sound-486fa2a23d8bc3d3aac18c4de8e4a9e47a19c935.zip
volume-control: making sure we're always in sync with accountservice
Diffstat (limited to 'src')
-rw-r--r--src/volume-control.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index ba87de5..1ab4547 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -170,6 +170,7 @@ public class VolumeControl : Object
{
_volume = volume_to_double (i.volume.max ());
volume_changed (_volume);
+ start_local_volume_timer();
}
}
@@ -238,6 +239,7 @@ public class VolumeControl : Object
/* Someone else changed the volume for this role, reflect on the indicator */
_volume = volume_to_double (volume);
volume_changed (_volume);
+ start_local_volume_timer();
}
}
}
@@ -280,6 +282,7 @@ public class VolumeControl : Object
_volume = volume_to_double (volume);
volume_changed (_volume);
+ start_local_volume_timer();
} catch (GLib.Error e) {
warning ("unable to get volume for active role %s (%s)", sink_input_objp, e.message);
}