aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Salveti de Araujo <ricardo.salveti@canonical.com>2014-10-10 15:40:19 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-10-10 15:40:19 +0000
commit41008d0605a62b5fc64846ad747d2c1c63e765d4 (patch)
treea48cc1db0207c4099d57cb8b90efa32bc1f6c0c1
parentf2b90d32a52baa7a41548500e5c9339a99cf1354 (diff)
parent486fa2a23d8bc3d3aac18c4de8e4a9e47a19c935 (diff)
downloadayatana-indicator-sound-41008d0605a62b5fc64846ad747d2c1c63e765d4.tar.gz
ayatana-indicator-sound-41008d0605a62b5fc64846ad747d2c1c63e765d4.tar.bz2
ayatana-indicator-sound-41008d0605a62b5fc64846ad747d2c1c63e765d4.zip
volume-control: making sure we're always in sync with accountservice Fixes: 1379618
Approved by: Ted Gould, PS Jenkins bot
-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 29c49f6..ad186a7 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);
}