[gnome-scan] Add timeout on probe instead of idle on load to poll backend probing count
- From: Étienne Bersac <bersace src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-scan] Add timeout on probe instead of idle on load to poll backend probing count
- Date: Sat, 20 Feb 2010 15:01:27 +0000 (UTC)
commit e017ede8bf0af0be2f4b73d84d92f2e422f719af
Author: Ã?tienne Bersac <bersace gnome org>
Date: Sat Feb 20 15:16:45 2010 +0100
Add timeout on probe instead of idle on load to poll backend probing count
This fix the "perpetual waiting cursor bug"
lib/gnome-scan-scanner-selector.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/gnome-scan-scanner-selector.vala b/lib/gnome-scan-scanner-selector.vala
index 70721fe..c1e6a68 100644
--- a/lib/gnome-scan-scanner-selector.vala
+++ b/lib/gnome-scan-scanner-selector.vala
@@ -94,6 +94,7 @@ namespace Gnome.Scan {
this.backends_probing_count--;
}
}
+ GLib.Timeout.add_seconds(1, this.on_check_probe_done);
}
private void load_backends()
@@ -107,7 +108,6 @@ namespace Gnome.Scan {
this.backends.append(backend);
backend.scanner_added += this.on_scanner_added;
backend.probe_done += this.on_probe_done;
- GLib.Idle.add(this.on_check_probe_done);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]