[gimp] app: add the GdkPixbuf and Cairo versions to the output of "gimp -v"



commit cabb6ab4d9672ce7419abbdf6df1f559593369d9
Author: Michael Natterer <mitch gimp org>
Date:   Fri Apr 8 12:30:50 2011 +0200

    app: add the GdkPixbuf and Cairo versions to the output of "gimp -v"

 app/version.c |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/app/version.c b/app/version.c
index c1e7b62..0a54217 100644
--- a/app/version.c
+++ b/app/version.c
@@ -18,12 +18,11 @@
 #include "config.h"
 
 #include <glib.h>
-
+#include <cairo.h>
 #include <fontconfig/fontconfig.h>
-
 #include <pango/pango.h>
 #include <pango/pangoft2.h>
-
+#include <gdk-pixbuf/gdk-pixbuf.h>
 #include <gegl.h>
 
 #ifndef GIMP_CONSOLE_COMPILATION
@@ -96,6 +95,14 @@ gimp_show_library_versions (void)
                              glib_minor_version,
                              glib_micro_version);
 
+  gimp_show_library_version ("GdkPixbuf",
+                             GDK_PIXBUF_MAJOR,
+                             GDK_PIXBUF_MINOR,
+                             GDK_PIXBUF_MICRO,
+                             gdk_pixbuf_major_version,
+                             gdk_pixbuf_minor_version,
+                             gdk_pixbuf_micro_version);
+
 #ifndef GIMP_CONSOLE_COMPILATION
   gimp_show_library_version ("GTK+",
                              GTK_MAJOR_VERSION,
@@ -119,6 +126,10 @@ gimp_show_library_versions (void)
                              FcGetVersion () / 100 / 100,
                              FcGetVersion () / 100 % 100,
                              FcGetVersion () % 100);
+
+  g_print (_("using %s version %s (compiled against version %s)"),
+           "Cairo", cairo_version_string (), CAIRO_VERSION_STRING);
+  g_print ("\n");
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]