From fd4a69e5a76e2c826ff76b5c09386f4efc2fdbdb Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 26 Feb 2008 15:27:57 +0000 Subject: [PATCH] Show also GEGL versions (if available). 2008-02-26 Tor Lillqvist * app/version.c (gimp_show_library_versions): Show also GEGL versions (if available). svn path=/trunk/; revision=24973 --- ChangeLog | 5 +++++ app/version.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 07c8e0f62b..6b40ee9dbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-26 Tor Lillqvist + + * app/version.c (gimp_show_library_versions): Show also GEGL + versions (if available). + 2008-02-26 Sven Neumann * plug-ins/print/print-preview.c: create a Cairo image surface diff --git a/app/version.c b/app/version.c index 49316f8b05..40ef0e53b1 100644 --- a/app/version.c +++ b/app/version.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "libgimpbase/gimpbase.h" @@ -62,6 +63,10 @@ gimp_show_one_library_version (const gchar *package, static void gimp_show_library_versions (void) { +#ifdef GEGL_MAJOR_VERSION + int gegl_major_version, gegl_minor_version, gegl_micro_version; +#endif + #ifndef GIMP_CONSOLE_COMPILATION gimp_show_one_library_version ("GTK+", @@ -80,6 +85,13 @@ gimp_show_library_versions (void) ("Fontconfig", FC_MAJOR, FC_MINOR, FC_REVISION, FcGetVersion () / 100 / 100, FcGetVersion () / 100 % 100, FcGetVersion () % 100); +#ifdef GEGL_MAJOR_VERSION + gegl_get_version (&gegl_major_version, &gegl_minor_version, &gegl_micro_version); + gimp_show_one_library_version + ("GEGL", + GEGL_MAJOR_VERSION, GEGL_MINOR_VERSION, GEGL_MICRO_VERSION, + gegl_major_version, gegl_minor_version, gegl_micro_version); +#endif } void