Re: [gexiv2] Include gexiv2 in GNOME-PHOTOS
- From: "HK_Privat" <hk_priv gmx de>
- To: "'Umang Jain'" <mailumangjain gmail com>, <gexiv2-list gnome org>
- Subject: Re: [gexiv2] Include gexiv2 in GNOME-PHOTOS
- Date: Wed, 20 Jan 2016 18:20:48 +0100
Yes, you are right. The parameter „self“ is always of type GExiv2Metadata.
It is tested in every function with
g_return_val_if_fail(GEXIV2_IS_METADATA(self), FALSE);
So you always need valid metadata. Gimp produces a valid metadata object, if needed, by reading them from a
very small valid JPG with (empty) metadata. (A resized „Wilber“) :-)
Hatti
Von: gexiv2-list [mailto:gexiv2-list-bounces gnome org] Im Auftrag von Umang Jain
Gesendet: Sonntag, 10. Januar 2016 15:26
An: gexiv2-list gnome org
Betreff: [gexiv2] Include gexiv2 in GNOME-PHOTOS
Hi,
I am Umang Jain and I am contributing to gnome-photos currently. I am assigned the bug:
https://bugzilla.gnome.org/show_bug.cgi?id=759156
Metadata is lost when a image is edited and exported as new image in gnome-photos. I have to fix this.
I built and installed gexiv2 as per https://wiki.gnome.org/Projects/gexiv2/BuildingAndInstalling
But when I use any function, e.g. gexiv2_metadata_has_tag (self, tag) , it throws me error :
warning: passing argument 1 of ‘gexiv2_metadata_has_tag’ from incompatible pointer type
[-Wincompatible-pointer-types]
Here, self is instance inherited from g_object (using subclassing). Do I need to change it and inherit from
GEXIV2_TYPE_METADATA to get it working with gexiv2 functions ?
Consider me fairly new contributor. I just started. I also learnt subclassing a few days ago. So, please
bear with me and try to keep it simple. Thanks.
--
Umang J.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]