[gnome-online-miners/wip/facebook] gdata: Link folders and their children correctly



commit bf412cd86350575ea82365628fa502565e9c10ea
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]