1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-05 21:02:42 +02:00

app: add gexiv2 and exiv2 versions to crash data

For metadata related issues, it is often relevant to know the versions
of both gexiv2 and exiv2, so we add those here.
This commit is contained in:
Jacob Boerema
2024-09-23 13:27:36 -04:00
parent f84e4ee04d
commit 693817a424

View File

@@ -23,6 +23,8 @@
#include <pango/pango.h>
#include <pango/pangoft2.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gexiv2/gexiv2.h>
#include <exiv2/exv_conf.h>
#include <gegl.h>
#ifndef GIMP_CONSOLE_COMPILATION
@@ -281,6 +283,28 @@ gimp_library_versions (gboolean localized)
_("using %s version %s (compiled against version %s)") :
"using %s version %s (compiled against version %s)",
"Cairo", cairo_version_string (), CAIRO_VERSION_STRING);
temp = g_strdup_printf ("%s\n%s", lib_versions, lib_version);
g_free (lib_versions);
g_free (lib_version);
lib_versions = temp;
lib_version = gimp_library_version ("gexiv2",
GEXIV2_MAJOR_VERSION,
GEXIV2_MINOR_VERSION,
GEXIV2_MICRO_VERSION,
gexiv2_get_version () / 100 / 100,
gexiv2_get_version () / 100 % 100,
gexiv2_get_version () % 100,
localized);
temp = g_strdup_printf ("%s\n%s", lib_versions, lib_version);
g_free (lib_versions);
g_free (lib_version);
lib_versions = temp;
lib_version = g_strdup_printf (localized ?
_("using %s version %s") :
"using %s version %s",
"exiv2", EXV_PACKAGE_VERSION);
temp = g_strdup_printf ("%s\n%s\n", lib_versions, lib_version);
g_free (lib_versions);
g_free (lib_version);