[nautilus-actions] Plugin emits a warning on disabled or invalid item
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Plugin emits a warning on disabled or invalid item
- Date: Mon, 7 Dec 2009 21:21:03 +0000 (UTC)
commit 250ad74a952574693f524f5c9c7b3c26d0f2dc39
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon Dec 7 19:40:54 2009 +0100
Plugin emits a warning on disabled or invalid item
ChangeLog | 3 +++
nautilus-actions/plugin/nautilus-actions.c | 7 +++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7a462d9..35df335 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-12-07 Pierre Wieser <pwieser trychlos org>
+ * nautilus-actions/plugin/nautilus-actions.c (build_nautilus_menus):
+ Emits a warning when finding a disabled or invalid item.
+
* nautilus-actions/nact/nact-clipboard.c (nact_clipboard_dump):
Allow dump when clipboard has not been yet used.
diff --git a/nautilus-actions/plugin/nautilus-actions.c b/nautilus-actions/plugin/nautilus-actions.c
index 7159758..b600d17 100644
--- a/nautilus-actions/plugin/nautilus-actions.c
+++ b/nautilus-actions/plugin/nautilus-actions.c
@@ -412,6 +412,7 @@ build_nautilus_menus( NautilusActions *plugin, GList *tree, gint target, GList *
GList *it;
NAObjectProfile *profile;
NautilusMenuItem *item;
+ gchar *label;
g_debug( "%s: plugin=%p, tree=%p, target=%d, files=%p (count=%d)",
thisfn, ( void * ) plugin, ( void * ) tree, target,
@@ -423,6 +424,12 @@ build_nautilus_menus( NautilusActions *plugin, GList *tree, gint target, GList *
if( !na_object_is_enabled( it->data ) ||
!na_object_is_valid( it->data )){
+
+ label = na_object_get_label( it->data );
+ g_warning( "%s: '%s' item: enabled=%s, valid=%s", thisfn, label,
+ na_object_is_enabled( it->data ) ? "True":"False",
+ na_object_is_valid( it->data ) ? "True":"False" );
+ g_free( label );
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]