[gnome-online-miners/gnome-3-10] gdata: Link folders and their children correctly
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-miners/gnome-3-10] gdata: Link folders and their children correctly
- Date: Tue, 10 Sep 2013 09:28:31 +0000 (UTC)
commit 0c35af5dd9bc837d7037deb476bb25baaccb2d6f
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Sep 9 18:20:14 2013 +0200
gdata: Link folders and their children correctly
We should use GDATA_LINK_SELF as nao:identifier for folders instead of
GDataEntry:id, because that is how gdata_entry_look_up_links
identifies the parent folder of a child.
https://bugzilla.gnome.org/show_bug.cgi?id=694003
src/gom-gdata-miner.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gom-gdata-miner.c b/src/gom-gdata-miner.c
index c3620eb..d2af1bd 100644
--- a/src/gom-gdata-miner.c
+++ b/src/gom-gdata-miner.c
@@ -62,7 +62,10 @@ account_miner_job_process_entry (GomAccountMinerJob *job,
if (GDATA_IS_DOCUMENTS_FOLDER (doc_entry))
{
- identifier = g_strdup_printf ("gd:collection:%s", gdata_entry_get_id (entry));
+ GDataLink *link;
+
+ link = gdata_entry_look_up_link (entry, GDATA_LINK_SELF);
+ identifier = g_strdup_printf ("gd:collection:%s", gdata_link_get_uri (link));
resource_url = NULL;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]