[tracker/rss-enclosures] tracker-store: class-signal: Reset the total counter on each emit
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-store: class-signal: Reset the total counter on each emit
- Date: Wed, 24 Nov 2010 01:34:35 +0000 (UTC)
commit 3feb568d67889af6628a865a351cea3fbbbd56e9
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Aug 23 11:22:18 2010 +0200
tracker-store: class-signal: Reset the total counter on each emit
src/tracker-store/tracker-resources.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.c b/src/tracker-store/tracker-resources.c
index 5c87ed7..901e7b6 100644
--- a/src/tracker-store/tracker-resources.c
+++ b/src/tracker-store/tracker-resources.c
@@ -617,6 +617,9 @@ on_emit_class_signal (gpointer user_data)
}
}
+ /* Reset counter */
+ tracker_events_get_total (TRUE);
+
if (!had_any)
priv->class_signal_timeout = 0;
@@ -679,6 +682,8 @@ check_class_signal_signal (TrackerResources *object)
TrackerClass *class = key;
emit_class_signal (object, class);
}
+
+ /* Reset counter */
tracker_events_get_total (TRUE);
} else {
/* Ready the signal */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]