summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2021-06-04 14:39:06 +0200
committerOndrej Holy <oholy@redhat.com>2021-07-09 15:46:59 +0200
commit8c5fa3eb080203432d7bf07af27aa27604e44ed1 (patch)
treeee4de66c93f5994309d971a9560c8037985495b0 /extensions
parent24df6cf4a90bc854ef61a6f93c76f48a0079e556 (diff)
downloadnautilus-8c5fa3eb080203432d7bf07af27aa27604e44ed1.tar.gz
extensions/image-properties: Replace deprecated symbols
The build log contains warnings about deprecated gexiv2 functions. Let's port to the new API, unpin exiv3 and gexiv2 dependencies in flatpak manifests and bump the build dependency accordingly to get rid of the warnings.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/image-properties/nautilus-image-properties-page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/image-properties/nautilus-image-properties-page.c b/extensions/image-properties/nautilus-image-properties-page.c
index 23aca4986..9b7485f58 100644
--- a/extensions/image-properties/nautilus-image-properties-page.c
+++ b/extensions/image-properties/nautilus-image-properties-page.c
@@ -196,11 +196,11 @@ append_gexiv2_tag (NautilusImagesPropertiesPage *page,
{
g_autofree char *tag_value = NULL;
- tag_value = gexiv2_metadata_get_tag_interpreted_string (page->md, *i);
+ tag_value = gexiv2_metadata_try_get_tag_interpreted_string (page->md, *i, NULL);
if (description == NULL)
{
- description = gexiv2_metadata_get_tag_description (*i);
+ description = gexiv2_metadata_try_get_tag_description (*i, NULL);
}
/* don't add empty tags - try next one */
@@ -262,7 +262,7 @@ append_gexiv2_info (NautilusImagesPropertiesPage *page)
append_gexiv2_tag (page, rights, _("Copyright"));
append_gexiv2_tag (page, rating, _("Rating"));
- if (gexiv2_metadata_get_gps_info (page->md, &longitude, &latitude, &altitude))
+ if (gexiv2_metadata_try_get_gps_info (page->md, &longitude, &latitude, &altitude, NULL))
{
g_autofree char *gps_coords = NULL;