[gnome-photos] application: Register XMP namespace



commit c45325200bff27efea24bbc58e73b9fb07717334
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Sep 6 19:32:27 2016 +0200

    application: Register XMP namespace
    
    We will use this 'gnome' namespace to embed metadata identifying the
    shared copies of a LocalItem.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770267

 src/photos-application.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 793b213..356c912 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -632,6 +632,7 @@ static gboolean
 photos_application_create_window (PhotosApplication *self)
 {
   gboolean gexiv2_initialized;
+  gboolean gexiv2_registered_namespace;
 
   if (self->main_window != NULL)
     return TRUE;
@@ -639,6 +640,9 @@ photos_application_create_window (PhotosApplication *self)
   gexiv2_initialized = gexiv2_initialize ();
   g_return_val_if_fail (gexiv2_initialized, FALSE);
 
+  gexiv2_registered_namespace = gexiv2_metadata_register_xmp_namespace ("http://www.gnome.org/xmp";, "gnome");
+  g_return_val_if_fail (gexiv2_registered_namespace, FALSE);
+
   g_return_val_if_fail (photos_application_sanity_check_gegl (self), FALSE);
 
   self->main_window = photos_main_window_new (GTK_APPLICATION (self));


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