[dia] Prefer CAIRO_VERSION_STRING over CAIRO_VERSION_MAJOR



commit 90dc4c62f88de902dd401876651176062b7eb03f
Author: Hans Breuer <hans breuer org>
Date:   Sat Apr 18 22:32:54 2009 +0200

    Prefer CAIRO_VERSION_STRING over CAIRO_VERSION_MAJOR
---
 app/app_procs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/app_procs.c b/app/app_procs.c
index 3f6f397..e0649eb 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -487,7 +487,11 @@ dump_dependencies(void)
   g_print ("pango   : version not available (>= 1.14.x)\n"); /* Pango did not provide such */
 #endif
 #if HAVE_CAIRO
+#  ifdef CAIRO_VERSION_STRING
+  g_print ("cairo   : %s (%s)\n", cairo_version_string(), CAIRO_VERSION_STRING);
+#  else
   g_print ("cairo   : %s (%d.%d.%d)\n", cairo_version_string(), CAIRO_VERSION_MAJOR, CAIRO_VERSION_MINOR, CAIRO_VERSION_MICRO);
+#  endif
 #endif
 #if 0
   {



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