aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-28 15:58:05 -0600
committercharles kerr <charlesk@canonical.com>2015-12-28 15:58:05 -0600
commit7cc1f182dd3c662e1bc8fdf0eed72bbbde3283a0 (patch)
tree05487dd4d44f460a34068a1cb7851dd45fcb8978
parent6f553929ea723c0ab3d050807f4770924e23885c (diff)
downloadayatana-indicator-sound-7cc1f182dd3c662e1bc8fdf0eed72bbbde3283a0.tar.gz
ayatana-indicator-sound-7cc1f182dd3c662e1bc8fdf0eed72bbbde3283a0.tar.bz2
ayatana-indicator-sound-7cc1f182dd3c662e1bc8fdf0eed72bbbde3283a0.zip
remove unneeded idle timer from volume-warning
-rw-r--r--src/volume-warning.vala22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/volume-warning.vala b/src/volume-warning.vala
index 9a51d04..80313a8 100644
--- a/src/volume-warning.vala
+++ b/src/volume-warning.vala
@@ -99,7 +99,6 @@ public class VolumeWarning : Object
private void stop_all_timers()
{
stop_high_volume_approved_timer();
- stop_show_timeout();
}
/***
@@ -426,27 +425,6 @@ public class VolumeWarning : Object
private PulseAudio.Volume _ok_volume = PulseAudio.Volume.INVALID;
- private uint _show_timeout = 0;
-
- private void stop_show_timeout() {
- if (_show_timeout != 0) {
- Source.remove(_show_timeout);
- _show_timeout = 0;
- }
- }
-
- private void show_soon() {
- const uint interval_msec = 200;
- if (_show_timeout == 0)
- _show_timeout = Timeout.add(interval_msec, show_idle);
- }
-
- private bool show_idle() {
- _show_timeout = 0;
- this.show();
- return false; // Source.REMOVE;
- }
-
protected virtual void preshow() {
_warning_sink_input_index = _multimedia_sink_input_index;
}