[tracker/batch-signal: 3/4] tracker-store: Use Timeout.add instead of add_seconds for signal timeout
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/batch-signal: 3/4] tracker-store: Use Timeout.add instead of add_seconds for signal timeout
- Date: Tue, 10 May 2011 15:40:23 +0000 (UTC)
commit d1a26f33251d0eca3983fd7d60b3fe34374e9c32
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, which 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]