[nautilus-actions] NactTreeView::get_selected_items(): improve debug message
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NactTreeView::get_selected_items(): improve debug message
- Date: Tue, 14 Feb 2012 17:39:55 +0000 (UTC)
commit a26f4f4dd50f22cf23bbd20598696b1b6414db78
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Feb 14 07:04:51 2012 +0100
NactTreeView::get_selected_items(): improve debug message
ChangeLog | 2 ++
src/nact/nact-tree-view.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0941517..27eacca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2012-02-14 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-tree-view.c (get_selected_items): Improve debug message.
+
* src/nact/nact-menubar.c (instance_dispose,
on_tree_view_selection_changed): Keeping a recursive ref on the current
selection is definitively a bad idea;; only keep a copy of the list.
diff --git a/src/nact/nact-tree-view.c b/src/nact/nact-tree-view.c
index b640273..6c01751 100644
--- a/src/nact/nact-tree-view.c
+++ b/src/nact/nact-tree-view.c
@@ -1268,9 +1268,11 @@ get_selected_items( NactTreeView *view )
path = ( GtkTreePath * ) it->data;
gtk_tree_model_get_iter( model, &iter, path );
gtk_tree_model_get( model, &iter, TREE_COLUMN_NAOBJECT, &object, -1 );
- g_debug( "%s: object=%p (%s)", thisfn, ( void * ) object, G_OBJECT_TYPE_NAME( object ));
items = g_list_prepend( items, na_object_ref( object ));
g_object_unref( object );
+ g_debug( "%s: object=%p (%s) ref_count=%d",
+ thisfn,
+ ( void * ) object, G_OBJECT_TYPE_NAME( object ), G_OBJECT( object )->ref_count );
}
g_list_foreach( listrows, ( GFunc ) gtk_tree_path_free, NULL );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]