[tracker/tracker-0.10] tracker-store: Use Timeout.add instead of add_seconds for signal timeout
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-store: Use Timeout.add instead of add_seconds for signal timeout
- Date: Thu, 12 May 2011 09:36:17 +0000 (UTC)
commit 11b918e8b2e0b7283f6ac5566e9e2b43486dc7c5
Author: Jürg Billeter <j bitron ch>
Date: Tue May 10 17:29:36 2011 +0200
tracker-store: Use Timeout.add instead of add_seconds for signal timeout
Second granularity is not precise enough for delays that might be
visible in the user interface.
src/tracker-store/tracker-resources.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.vala b/src/tracker-store/tracker-resources.vala
index 0d8aea9..bf491cf 100644
--- a/src/tracker-store/tracker-resources.vala
+++ b/src/tracker-store/tracker-resources.vala
@@ -263,7 +263,7 @@ public class Tracker.Resources : Object {
}
if (start_timer && signal_timeout == 0) {
- signal_timeout = Timeout.add_seconds (SIGNALS_SECONDS_PER_EMIT, on_emit_signals);
+ signal_timeout = Timeout.add (SIGNALS_SECONDS_PER_EMIT * 1000, on_emit_signals);
}
/* Writeback feature */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]