summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishal Kulkarni <nishalkulkarni@gmail.com>2021-12-04 17:37:35 +0530
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2021-12-04 22:54:14 +0000
commit0dfaaaeecddef60bb37955c6db5027396ff2f623 (patch)
treeb83ac8ec6dce664e2a64b905e6f286e5c96d4d65
parentb7b475298cad315da3c0ad159e497abc0bfe1993 (diff)
downloadnautilus-0dfaaaeecddef60bb37955c6db5027396ff2f623.tar.gz
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
-rw-r--r--build-aux/flatpak/org.gnome.Nautilus.json2
-rw-r--r--build-aux/flatpak/org.gnome.Nautilus.yml2
-rw-r--r--extensions/image-properties/nautilus-image-properties-page.c4
-rw-r--r--meson.build2
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