[grilo-plugins] tracker: fix bug in tracker event processing
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] tracker: fix bug in tracker event processing
- Date: Tue, 1 Feb 2011 17:23:08 +0000 (UTC)
commit d547147fb949271c9cf11f80518eab0d98510cca
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Tue Feb 1 12:22:55 2011 +0000
tracker: fix bug in tracker event processing
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/tracker/grl-tracker.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 3f11ed1..35354c4 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -321,6 +321,8 @@ tracker_evt_update_process_item_cb (GObject *object,
NULL);
grl_tracker_add_source (GRL_TRACKER_SOURCE (plugin));
g_free (source_name);
+ } else {
+ GRL_DEBUG ("\tChanges on source %p / %s", plugin, datasource);
}
} else if (!source_mounted && plugin != NULL) {
grl_tracker_del_source (GRL_TRACKER_SOURCE (plugin));
@@ -363,8 +365,9 @@ tracker_evt_update_process (tracker_evt_update_t *evt)
GRL_DEBUG ("%s", __FUNCTION__);
+ evt->updated_items_iter = evt->updated_items_list;
g_string_append_printf (request_str, "%i",
- GPOINTER_TO_INT (evt->updated_items_iter));
+ GPOINTER_TO_INT (evt->updated_items_iter->data));
evt->updated_items_iter = evt->updated_items_iter->next;
while (evt->updated_items_iter != NULL) {
@@ -425,6 +428,7 @@ tracker_dbus_signal_cb (GDBusConnection *connection,
}
g_variant_iter_free (iter1);
+
while (g_variant_iter_loop (iter2, "(iiii)", &graph,
&subject, &predicate, &object)) {
subject_state = GPOINTER_TO_INT (g_hash_table_lookup (evt->updated_items,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]