[nautilus-actions] Also dump object's origin



commit b6f8d9e0dfbec397e9334aeb53d1498b53b19267
Author: Pierre Wieser <pwieser trychlos org>
Date:   Thu Jun 24 17:20:05 2010 +0200

    Also dump object's origin

 ChangeLog                  |    2 ++
 src/nact/nact-tree-model.c |    7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0bd3f4b..be3a062 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2010-06-23 Pierre Wieser <pwieser trychlos org>
 
+	* src/nact/nact-tree-model.c (dump_store): Also dumps origin.
+
 	* src/core/na-updater.c (na_updater_remove_item):
 	Do not unref here removed item.
 	Also remove item from non level zero parent.
diff --git a/src/nact/nact-tree-model.c b/src/nact/nact-tree-model.c
index fa28232..a04dbb5 100644
--- a/src/nact/nact-tree-model.c
+++ b/src/nact/nact-tree-model.c
@@ -894,6 +894,7 @@ dump_store( NactTreeModel *model, GtkTreePath *path, NAObject *object, ntmDumpSt
 	gint i;
 	GString *prefix;
 	gchar *id, *label;
+	NAObjectItem *origin;
 
 	depth = gtk_tree_path_get_depth( path );
 	prefix = g_string_new( ntm->prefix );
@@ -903,9 +904,11 @@ dump_store( NactTreeModel *model, GtkTreePath *path, NAObject *object, ntmDumpSt
 
 	id = na_object_get_id( object );
 	label = na_object_get_label( object );
-	g_debug( "%s: %s%s at %p (ref_count=%d) \"[%s] %s\"",
+	origin = ( NAObjectItem * ) na_object_get_origin( object );
+	g_debug( "%s: %s%s at %p (ref_count=%d) \"[%s] %s\" origin=%p (%s)",
 			ntm->fname, prefix->str,
-			G_OBJECT_TYPE_NAME( object ), ( void * ) object, G_OBJECT( object )->ref_count, id, label );
+			G_OBJECT_TYPE_NAME( object ), ( void * ) object, G_OBJECT( object )->ref_count, id, label,
+			( void * ) origin, origin ? G_OBJECT_TYPE_NAME( object ) : "null" );
 	g_free( label );
 	g_free( id );
 



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