[nautilus-actions] Improve plugin debug messages
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Improve plugin debug messages
- Date: Wed, 15 Feb 2017 22:44:50 +0000 (UTC)
commit 0c3675340871814b92e0dbadce159f11dc3fb327
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jul 9 17:24:00 2015 +0200
Improve plugin debug messages
src/plugin-menu/nautilus-actions.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugin-menu/nautilus-actions.c b/src/plugin-menu/nautilus-actions.c
index eeea073..37de281 100644
--- a/src/plugin-menu/nautilus-actions.c
+++ b/src/plugin-menu/nautilus-actions.c
@@ -488,6 +488,7 @@ menu_provider_get_toolbar_items( NautilusMenuProvider *provider, GtkWidget *wind
static GList *
build_nautilus_menu( NautilusActions *plugin, guint target, GList *selection )
{
+ static const gchar *thisfn = "nautilus_actions_build_nautilus_menu";
GList *nautilus_menu;
NATokens *tokens;
GList *tree;
@@ -499,6 +500,7 @@ build_nautilus_menu( NautilusActions *plugin, guint target, GList *selection )
tokens = na_tokens_new_from_selection( selection );
tree = na_pivot_get_items( plugin->private->pivot );
+ g_debug( "%s: tree=%p, count=%d", thisfn, ( void * ) tree, g_list_length( tree ));
nautilus_menu = build_nautilus_menu_rec( tree, target, selection, tokens );
@@ -539,7 +541,7 @@ build_nautilus_menu_rec( GList *tree, guint target, GList *selection, NATokens *
nautilus_menu = NULL;
- for( it = tree ; it ; it = it->next ){
+ for( it=tree ; it ; it=it->next ){
g_return_val_if_fail( NA_IS_OBJECT_ITEM( it->data ), NULL );
label = na_object_get_label( it->data );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]