[gnome-photos] utils: Set nie:title when changing photo name



commit cee02369662ccb1214cdc2c90bd531b247e6a82e
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Nov 15 23:14:52 2012 +0100

    utils: Set nie:title when changing photo name
    
    Changing nfo:fileName is just wrong.
    
    Original patch from Cosimo Cecchi for gnome-documents.

 src/photos-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-utils.c b/src/photos-utils.c
index 4534df1..77ebcb0 100644
--- a/src/photos-utils.c
+++ b/src/photos-utils.c
@@ -542,7 +542,7 @@ photos_utils_set_edited_name (const gchar *urn, const gchar *title)
   PhotosTrackerQueue *queue;
   gchar *sparql;
 
-  sparql = g_strdup_printf ("INSERT OR REPLACE { <%s> nfo:fileName\"%s\" }", urn, title);
+  sparql = g_strdup_printf ("INSERT OR REPLACE { <%s> nie:title \"%s\" }", urn, title);
   queue = photos_tracker_queue_new ();
   photos_tracker_queue_update (queue, sparql, NULL, photos_utils_update_executed, g_strdup (urn), g_free);
   g_object_unref (queue);



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