[nautilus-actions] Print the compilation version of GLib2 and Gtk+ when in debug mode



commit 0b51bc1d3cb66522320664904a9e5d602d32b85e
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri Jan 7 12:08:47 2011 +0100

    Print the compilation version of GLib2 and Gtk+ when in debug mode

 ChangeLog                |    3 +++
 src/core/na-core-utils.c |    7 +++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d7c23f5..5eceb75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,9 @@
 
 2011-01-07 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-core-utils.c (na_core_utils_print_version):
+	Print the compilation version of GLib2 and Gtk+ when in debug mode.
+
 	* src/utils/Makefile.am:
 	nautilus-actions-schemas is renamed as na-print-schemas,
 	and is installed in PKGLIBEXECDIR.
diff --git a/src/core/na-core-utils.c b/src/core/na-core-utils.c
index 10beabb..fb691e2 100644
--- a/src/core/na-core-utils.c
+++ b/src/core/na-core-utils.c
@@ -1030,8 +1030,11 @@ na_core_utils_print_version( void )
 	g_print( "License (see COPYING).\n" );
 	g_print( "\n" );
 
-	g_debug( "Current system runs Glib %d.%d.%d, Gtk+ %d.%d.%d",
+	g_debug( "Program has been compiled against Glib %d.%d.%d, Gtk+ %d.%d.%d",
+			GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION,
+			GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION );
+
+	g_debug( "Current system runs Glib %d.%d.%d, Gtk+ %d.%d.%d\n",
 			glib_major_version, glib_minor_version, glib_micro_version,
 			gtk_major_version, gtk_minor_version, gtk_micro_version );
-	g_debug( "%s", "" );
 }



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