[gnome-documents/gnome-3-8] gdata: Link folders and their children correctly
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-8] gdata: Link folders and their children correctly
- Date: Wed, 11 Sep 2013 09:39:56 +0000 (UTC)
commit fe3061e369247dacec7986eec21e167be5a572bf
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Sep 10 11:42:34 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/miner/gd-gdata-miner.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/miner/gd-gdata-miner.c b/src/miner/gd-gdata-miner.c
index 050d744..a488282 100644
--- a/src/miner/gd-gdata-miner.c
+++ b/src/miner/gd-gdata-miner.c
@@ -58,7 +58,10 @@ account_miner_job_process_entry (GdAccountMinerJob *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]