[nautilus] extensions/image-properties: Replace deprecated functions



commit 0dfaaaeecddef60bb37955c6db5027396ff2f623
Author: Nishal Kulkarni <nishalkulkarni gmail com>
Date:   Sat Dec 4 17:37:35 2021 +0530

    extensions/image-properties: Replace deprecated functions
    
    Build log contains deprecation warnings for gexiv2 functions.
    Replaced `gexiv2_metadata_has_tag()` with
    `gexiv2_metadata_try_has_tag()` and `gexiv2_metadata_get_orientation()`
    with `gexiv2_metadata_try_get_orientation()`
    
    Closes: #2033

 build-aux/flatpak/org.gnome.Nautilus.json                    | 2 +-
 build-aux/flatpak/org.gnome.Nautilus.yml                     | 2 +-
 extensions/image-properties/nautilus-image-properties-page.c | 4 ++--
 meson.build                                                  | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/build-aux/flatpak/org.gnome.Nautilus.json b/build-aux/flatpak/org.gnome.Nautilus.json
index fecae9ea1..2857124c5 100644
--- a/build-aux/flatpak/org.gnome.Nautilus.json
+++ b/build-aux/flatpak/org.gnome.Nautilus.json
@@ -55,7 +55,7 @@
         {
           "type": "git",
           "url": "https://gitlab.gnome.org/GNOME/gexiv2.git";,
-          "branch": "gexiv2-0.12"
+          "branch": "gexiv2-0.14"
         }
       ]
     },
diff --git a/build-aux/flatpak/org.gnome.Nautilus.yml b/build-aux/flatpak/org.gnome.Nautilus.yml
index 06c6b2434..3e15f4b11 100644
--- a/build-aux/flatpak/org.gnome.Nautilus.yml
+++ b/build-aux/flatpak/org.gnome.Nautilus.yml
@@ -45,7 +45,7 @@ modules:
   sources:
   - type: git
     url: https://gitlab.gnome.org/GNOME/gexiv2.git
-    tag: gexiv2-0.12
+    tag: gexiv2-0.14
 - name: tracker-miners
   buildsystem: meson
   cleanup:
diff --git a/extensions/image-properties/nautilus-image-properties-page.c 
b/extensions/image-properties/nautilus-image-properties-page.c
index 9b7485f58..45c85575a 100644
--- a/extensions/image-properties/nautilus-image-properties-page.c
+++ b/extensions/image-properties/nautilus-image-properties-page.c
@@ -150,7 +150,7 @@ append_basic_info (NautilusImagesPropertiesPage *page)
 
     append_item (page, _("Image Type"), value);
 
-    orientation = gexiv2_metadata_get_orientation (page->md);
+    orientation = gexiv2_metadata_try_get_orientation (page->md, NULL);
 
     if (orientation == GEXIV2_ORIENTATION_ROT_90
         || orientation == GEXIV2_ORIENTATION_ROT_270
@@ -192,7 +192,7 @@ append_gexiv2_tag (NautilusImagesPropertiesPage  *page,
 
     for (const char **i = tag_names; *i != NULL; i++)
     {
-        if (gexiv2_metadata_has_tag (page->md, *i))
+        if (gexiv2_metadata_try_has_tag (page->md, *i, NULL))
         {
             g_autofree char *tag_value = NULL;
 
diff --git a/meson.build b/meson.build
index b52694658..927216636 100644
--- a/meson.build
+++ b/meson.build
@@ -109,7 +109,7 @@ libgd_dep = libgd.get_variable('libgd_dep')
 libm = cc.find_library('m')
 
 if get_option('extensions')
-  gexiv = dependency('gexiv2', version: '>= 0.12.2')
+  gexiv = dependency('gexiv2', version: '>= 0.14.0')
   gst_tag_dep = dependency('gstreamer-tag-1.0')
   gst_pbutils_dep = dependency('gstreamer-pbutils-1.0')
 endif


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