[gthumb] use the application name (gThumb) in the Exif.Image.Software tag
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] use the application name (gThumb) in the Exif.Image.Software tag
- Date: Wed, 20 Jul 2011 21:51:38 +0000 (UTC)
commit 6875bcf6ac089ebb2900a85708dd3559c0e32315
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 20 22:47:52 2011 +0200
use the application name (gThumb) in the Exif.Image.Software tag
extensions/exiv2_tools/exiv2-utils.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/extensions/exiv2_tools/exiv2-utils.cpp b/extensions/exiv2_tools/exiv2-utils.cpp
index bb9055c..31afa2a 100644
--- a/extensions/exiv2_tools/exiv2-utils.cpp
+++ b/extensions/exiv2_tools/exiv2-utils.cpp
@@ -894,8 +894,9 @@ exiv2_write_metadata_private (Exiv2::Image::AutoPtr image,
GFileInfo *info,
GdkPixbuf *pixbuf)
{
- char **attributes;
- int i;
+ static char *software_name = NULL;
+ char **attributes;
+ int i;
image->clearMetadata();
@@ -954,7 +955,9 @@ exiv2_write_metadata_private (Exiv2::Image::AutoPtr image,
// Overwrite the software tag
- ed["Exif.Image.Software"] = PACKAGE " " VERSION;
+ if (software_name == NULL)
+ software_name = g_strconcat (g_get_application_name (), " ", VERSION, NULL);
+ ed["Exif.Image.Software"] = software_name;
// Update the dimension tags with actual image values
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]