Usage of deprecated GExiv2 functions
When building Nautilus, the following GExiv2 build warnings are displayed:
[172/194] Compiling C object extensions/image-properties/libnautilus-image-properties.so.p/nautilus-image-properties-page.c.o
../../checkout/nautilus/extensions/image-properties/nautilus-image-properties-page.c: In function ‘append_basic_info’:
../../checkout/nautilus/extensions/image-properties/nautilus-image-properties-page.c:153:5: warning: ‘gexiv2_metadata_get_orientation’ is deprecated: Use 'gexiv2_metadata_try_get_orientation' instead [-Wdeprecated-declarations]
153 | orientation = gexiv2_metadata_get_orientation (page->md);
| ^~~~~~~~~~~
In file included from /usr/include/gexiv2/gexiv2.h:13,
from ../../checkout/nautilus/extensions/image-properties/nautilus-image-properties-page.c:24:
/usr/include/gexiv2/gexiv2-metadata.h:1374:19: note: declared here
1374 | GExiv2Orientation gexiv2_metadata_get_orientation (GExiv2Metadata *self);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../checkout/nautilus/extensions/image-properties/nautilus-image-properties-page.c: In function ‘append_gexiv2_tag’:
../../checkout/nautilus/extensions/image-properties/nautilus-image-properties-page.c:195:9: warning: ‘gexiv2_metadata_has_tag’ is deprecated: Use 'gexiv2_metadata_try_has_tag' instead [-Wdeprecated-declarations]
195 | if (gexiv2_metadata_has_tag (page->md, *i))
| ^~
In file included from /usr/include/gexiv2/gexiv2.h:13,
from ../../checkout/nautilus/extensions/image-properties/nautilus-image-properties-page.c:24:
/usr/include/gexiv2/gexiv2-metadata.h:410:25: note: declared here
410 | gboolean gexiv2_metadata_has_tag (GExiv2Metadata *self, const gchar* tag);
|
It should be pretty easy to fix them by usage of gexiv2_metadata_try_get_orientation
and gexiv2_metadata_try_has_tag
similarly as it was done in 8c5fa3eb.