Show also GEGL versions (if available).

2008-02-26  Tor Lillqvist  <tml@novell.com>

	* app/version.c (gimp_show_library_versions): Show also GEGL
	versions (if available).


svn path=/trunk/; revision=24973
This commit is contained in:
Tor Lillqvist 2008-02-26 15:27:57 +00:00 committed by Tor Lillqvist
parent fbbb82329e
commit fd4a69e5a7
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-02-26 Tor Lillqvist <tml@novell.com>
* app/version.c (gimp_show_library_versions): Show also GEGL
versions (if available).
2008-02-26 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-preview.c: create a Cairo image surface

View File

@ -34,6 +34,7 @@
#include <fontconfig/fontconfig.h>
#include <pango/pango.h>
#include <pango/pangoft2.h>
#include <gegl.h>
#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