mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
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:
parent
b7b475298c
commit
0dfaaaeecd
4 changed files with 5 additions and 5 deletions
|
@ -55,7 +55,7 @@
|
|||
{
|
||||
"type": "git",
|
||||
"url": "https://gitlab.gnome.org/GNOME/gexiv2.git",
|
||||
"branch": "gexiv2-0.12"
|
||||
"branch": "gexiv2-0.14"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue