[gthumb] explicitly set all the values of the xmp date metadata instead of duplicating the exif date
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] explicitly set all the values of the xmp date metadata instead of duplicating the exif date
- Date: Thu, 21 Jul 2011 08:05:10 +0000 (UTC)
commit 03470057f8a6c6e793937dcbb7d7feed6f3a890e
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jul 21 09:02:11 2011 +0200
explicitly set all the values of the xmp date metadata instead of duplicating the exif date
.../exiv2_tools/gth-metadata-provider-exiv2.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/extensions/exiv2_tools/gth-metadata-provider-exiv2.c b/extensions/exiv2_tools/gth-metadata-provider-exiv2.c
index 6321ad4..e321755 100644
--- a/extensions/exiv2_tools/gth-metadata-provider-exiv2.c
+++ b/extensions/exiv2_tools/gth-metadata-provider-exiv2.c
@@ -215,9 +215,13 @@ gth_metadata_provider_exiv2_write (GthMetadataProvider *self,
if (_g_time_val_from_exif_date (gth_metadata_get_raw (GTH_METADATA (metadata)), &timeval)) {
char *xmp_format;
- xmp_metadata = gth_metadata_dup (GTH_METADATA (metadata));
+ xmp_metadata = gth_metadata_new ();
xmp_format = _g_time_val_to_xmp_date (&timeval);
- g_object_set (xmp_metadata, "raw", xmp_format, NULL);
+ g_object_set (xmp_metadata,
+ "raw", xmp_format,
+ "formatted", gth_metadata_get_formatted (GTH_METADATA (metadata)),
+ "value-type", NULL, /* use the default type as described in extensions/exiv2_tools/main.c */
+ NULL);
g_free (xmp_format);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]