[nautilus-actions] base_window_setup_builder: Add a trace message



commit d3b287813fb1af3143acec90ce93dfe7b094ed5c
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Jan 26 23:28:19 2011 +0100

    base_window_setup_builder: Add a trace message

 ChangeLog              |    1 +
 src/nact/base-window.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fbc868e..5d51a29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 
 	* src/nact/base-builder.c (base_builder_get_toplevel_by_name):
 	* src/nact/base-iprefs.c (base_iprefs_position_named_window):
+	* src/nact/base-window.c (setup_builder):
 	Add a debug message.
 
 2011-01-24 Pierre Wieser <pwieser trychlos org>
diff --git a/src/nact/base-window.c b/src/nact/base-window.c
index 38c9891..7cd70c4 100644
--- a/src/nact/base-window.c
+++ b/src/nact/base-window.c
@@ -610,6 +610,7 @@ setup_builder( const BaseWindow *window )
 
 	/* allocate a dedicated BaseBuilder or use the common one
 	 */
+	g_debug( "%s: has_own_builder=%s", thisfn, window->private->has_own_builder ? "True":"False" );
 	if( window->private->has_own_builder ){
 		window->private->builder = base_builder_new();
 	} else {
@@ -619,6 +620,7 @@ setup_builder( const BaseWindow *window )
 
 	/* load the XML definition from the UI file
 	 */
+	g_debug( "%s: xmlui_filename=%s", thisfn, window->private->xmlui_filename );
 	if( window->private->xmlui_filename &&
 		g_utf8_strlen( window->private->xmlui_filename, -1 ) &&
 		!base_builder_add_from_file( window->private->builder, window->private->xmlui_filename, &error )){
@@ -630,6 +632,7 @@ setup_builder( const BaseWindow *window )
 			ret = FALSE;
 	}
 
+	g_debug( "%s: ret=%s", thisfn, ret ? "True":"False" );
 	return( ret );
 }
 



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