aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2014-04-18 13:20:53 -0400
committerMichael Terry <michael.terry@canonical.com>2014-04-18 13:20:53 -0400
commitd0852028e0b47a1e2116d789b57475d27adb2591 (patch)
tree0f1e1ca10042efe8b9eb376a5efce0d2009d205c
parent3c9c5f55e8a876fba36f2cd1f36cf2a5881f5846 (diff)
downloadayatana-indicator-sound-d0852028e0b47a1e2116d789b57475d27adb2591.tar.gz
ayatana-indicator-sound-d0852028e0b47a1e2116d789b57475d27adb2591.tar.bz2
ayatana-indicator-sound-d0852028e0b47a1e2116d789b57475d27adb2591.zip
Consolidate local_volume_changed_timeout
-rw-r--r--src/volume-control.vala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index ccc81d1..ebca606 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -522,13 +522,11 @@ public class VolumeControl : Object
bool local_volume_changed_timeout()
{
- if (_send_next_local_volume == true) {
+ _local_volume_timer = 0;
+ if (_send_next_local_volume) {
_send_next_local_volume = false;
-
- sync_volume_to_accountsservice.begin (_volume);
- return true; // G_SOURCE_CONTINUE
+ start_local_volume_timer();
}
- _local_volume_timer = 0;
return false; // G_SOURCE_REMOVE
}