[tracker] tracker-store: Use Timeout.add instead of add_seconds for signal timeout



commit 372333f5e247cc849494c8d6744690caff543fc4
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]