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
This commit is contained in:
Nishal Kulkarni 2021-12-04 17:37:35 +05:30 committed by António Fernandes
parent b7b475298c
commit 0dfaaaeecd
4 changed files with 5 additions and 5 deletions

View file

@ -55,7 +55,7 @@
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gexiv2.git",
"branch": "gexiv2-0.12"
"branch": "gexiv2-0.14"
}
]
},

View file

@ -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:

View file

@ -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;

View file

@ -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