[nautilus-actions] Add debug messages to trace order and names in the selection
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Add debug messages to trace order and names in the selection
- Date: Wed, 29 Dec 2010 19:51:06 +0000 (UTC)
commit e6bb76db3eff95de28eb8752594b32afb7a652aa
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Dec 29 16:20:06 2010 +0100
Add debug messages to trace order and names in the selection
ChangeLog | 4 ++++
src/core/na-selected-info.c | 1 +
src/plugin-menu/nautilus-actions.c | 19 ++++++++++++++-----
3 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index eb5aa7b..bfdca66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2010-12-29 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-selected-info.c (new_from_nautilus_file_info):
+ * src/plugin-menu/nautilus-actions.c (menu_provider_get_file_items):
+ Add debug messages to trace order and names in the selection.
+
* src/plugin-menu/nautilus-module.c (set_log_handler):
Remove obsolete TODO.
diff --git a/src/core/na-selected-info.c b/src/core/na-selected-info.c
index 782534f..6be4604 100644
--- a/src/core/na-selected-info.c
+++ b/src/core/na-selected-info.c
@@ -629,6 +629,7 @@ new_from_nautilus_file_info( NautilusFileInfo *item )
{
gchar *uri = nautilus_file_info_get_uri( item );
gchar *mimetype = nautilus_file_info_get_mime_type( item );
+ g_debug( "new_from_nautilus_file_info: uri=%s, mimetype=%s", uri, mimetype );
NASelectedInfo *info = new_from_uri( uri, mimetype, NULL );
g_free( mimetype );
g_free( uri );
diff --git a/src/plugin-menu/nautilus-actions.c b/src/plugin-menu/nautilus-actions.c
index 94db89e..98ce24a 100644
--- a/src/plugin-menu/nautilus-actions.c
+++ b/src/plugin-menu/nautilus-actions.c
@@ -458,13 +458,22 @@ menu_provider_get_file_items( NautilusMenuProvider *provider, GtkWidget *window,
g_return_val_if_fail( NAUTILUS_IS_ACTIONS( provider ), NULL );
- /* no need to go further if there is no files in the list */
- if( !g_list_length( files )){
- return(( GList * ) NULL );
- }
-
if( !NAUTILUS_ACTIONS( provider )->private->dispose_has_run ){
+ /* no need to go further if there is no files in the list */
+ if( !g_list_length( files )){
+ return(( GList * ) NULL );
+ }
+
+#ifdef NA_MAINTAINER_MODE
+ GList *im;
+ for( im = files ; im ; im = im->next ){
+ gchar *uri = nautilus_file_info_get_uri( NAUTILUS_FILE_INFO( im->data ));
+ g_debug( "%s: uri=%s", thisfn, uri );
+ g_free( uri );
+ }
+#endif
+
selected = na_selected_info_get_list_from_list(( GList * ) files );
if( selected ){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]