[tracker/class-signal: 55/61] tracker-store: class-signal: Bugfix, the timer based emit wasn't working



commit a67fff43455161f168d50efc5373f898bb7d3ae6
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Aug 31 12:13:46 2010 +0200

    tracker-store: class-signal: Bugfix, the timer based emit wasn't working

 src/tracker-store/tracker-resources.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 553b60e..9e554bb 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -721,7 +721,7 @@ on_statement_inserted (gint         graph_id,
 	a = tracker_writeback_check (graph_id, graph, subject_id,
 	                             subject, pred_id, object_id,
 	                             object, rdf_types);
-	b = check_graph_updated_signal (user_data);
+	b = !(check_graph_updated_signal (user_data));
 
 	if ((a || b) && priv->signal_timeout == 0) {
 		priv->signal_timeout = g_timeout_add_seconds (TRACKER_SIGNALS_SECONDS_PER_EMIT,
@@ -752,7 +752,7 @@ on_statement_deleted (gint         graph_id,
 	a = tracker_writeback_check (graph_id, graph, subject_id,
 	                             subject, pred_id, object_id,
 	                             object, rdf_types);
-	b = check_graph_updated_signal (user_data);
+	b = !(check_graph_updated_signal (user_data));
 
 	if ((a || b) && priv->signal_timeout == 0) {
 		priv->signal_timeout = g_timeout_add_seconds (TRACKER_SIGNALS_SECONDS_PER_EMIT,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]