[gnome-online-miners] gdata: Use a #define for the PicasaWeb prefix



commit 46903645752b53bff4ffeff642637e00c73e8c4d
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Apr 22 10:55:44 2015 +0200

    gdata: Use a #define for the PicasaWeb prefix
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748253

 src/gom-gdata-miner.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gom-gdata-miner.c b/src/gom-gdata-miner.c
index e8e28d6..d6084d2 100644
--- a/src/gom-gdata-miner.c
+++ b/src/gom-gdata-miner.c
@@ -31,6 +31,7 @@
 #define MINER_IDENTIFIER "gd:gdata:miner:86ec9bc9-c242-427f-aa19-77b5a2c9b6f0"
 #define PARENT_LINK_REL "http://schemas.google.com/docs/2007#parent";
 #define PREFIX_DRIVE "google:drive:"
+#define PREFIX_PICASAWEB "google:picasaweb:"
 
 G_DEFINE_TYPE (GomGDataMiner, gom_gdata_miner, GOM_TYPE_MINER)
 
@@ -378,7 +379,7 @@ account_miner_job_process_photo (GomAccountMinerJob *job,
         }
     }
 
-  identifier = g_strdup_printf ("google:picasaweb:%s", id);
+  identifier = g_strdup_printf ("%s%s", PREFIX_PICASAWEB, id);
 
   /* remove from the list of the previous resources */
   g_hash_table_remove (job->previous_resources, identifier);
@@ -656,7 +657,7 @@ account_miner_job_process_album (GomAccountMinerJob *job,
   const gchar *alternate_uri;
 
   album_id = gdata_entry_get_id (GDATA_ENTRY (album));
-  identifier = g_strdup_printf ("photos:collection:google:picasaweb:%s", album_id);
+  identifier = g_strdup_printf ("photos:collection:%s%s", PREFIX_PICASAWEB, album_id);
 
   /* remove from the list of the previous resources */
   g_hash_table_remove (job->previous_resources, identifier);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]