[nautilus-actions] Add a function to dump NASelectedInfo object
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Add a function to dump NASelectedInfo object
- Date: Wed, 14 Apr 2010 18:14:37 +0000 (UTC)
commit c2b8439138bae1bc46b4ea12b6b1dc0fe45255d0
Author: Pierre Wieser <pwieser trychlos org>
Date: Wed Apr 14 01:59:03 2010 +0200
Add a function to dump NASelectedInfo object
ChangeLog | 4 ++++
src/core/na-icontextual.c | 3 +++
src/core/na-selected-info.c | 16 ++++++++++++++++
3 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index de989a8..5381852 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-14 Pierre Wieser <pwieser trychlos org>
+
+ * src/core/na-selected-info.c (dump): New function.
+
2009-04-09 Pierre Wieser <pwieser trychlos org>
* NEWS: Updated.
diff --git a/src/core/na-icontextual.c b/src/core/na-icontextual.c
index 91c9069..e579cda 100644
--- a/src/core/na-icontextual.c
+++ b/src/core/na-icontextual.c
@@ -408,9 +408,11 @@ is_target_selection_candidate( const NAIContextual *object, GList *files )
for( iter1 = files ; iter1 ; iter1 = iter1->next ){
tmp_filename = na_selected_info_get_name( NA_SELECTED_INFO( iter1->data ));
+ g_debug( "na_icontext_is_target_selection_candidate: tmp_filename=%s", tmp_filename );
if( tmp_filename ){
tmp_mimetype = na_selected_info_get_mime_type( NA_SELECTED_INFO( iter1->data ));
+ g_debug( "na_icontext_is_target_selection_candidate: tmp_mimetype=%s", tmp_mimetype );
if( !matchcase ){
/* --> if case-insensitive asked, lower all the string
@@ -420,6 +422,7 @@ is_target_selection_candidate( const NAIContextual *object, GList *files )
tmp_filename2 = g_ascii_strdown( tmp_filename, strlen( tmp_filename ));
g_free( tmp_filename );
tmp_filename = tmp_filename2;
+ g_debug( "na_icontext_is_target_selection_candidate: tmp_filename=%s", tmp_filename );
}
/* --> for the moment we deal with all mimetypes case-insensitively */
diff --git a/src/core/na-selected-info.c b/src/core/na-selected-info.c
index 06b5ccc..d30b788 100644
--- a/src/core/na-selected-info.c
+++ b/src/core/na-selected-info.c
@@ -61,6 +61,7 @@ static void instance_init( GTypeInstance *instance, gpointer klass );
static void instance_dispose( GObject *object );
static void instance_finalize( GObject *object );
+static void dump( const NASelectedInfo *nsi );
static NASelectedInfo *new_from_nautilus_file_info( NautilusFileInfo *item );
static NASelectedInfo *new_from_uri( const gchar *uri );
static void query_file_attributes( NASelectedInfo *info );
@@ -418,6 +419,20 @@ na_selected_info_create_for_uri( const gchar *uri )
return( obj );
}
+static void
+dump( const NASelectedInfo *nsi )
+{
+ static const gchar *thisfn = "na_selected_info_dump";
+
+ g_debug( "%s: uri=%s", thisfn, nsi->private->uri );
+ g_debug( "%s: mimetype=%s", thisfn, nsi->private->mimetype );
+ g_debug( "%s: vfs->path=%s", thisfn, nsi->private->vfs->path );
+ g_debug( "%s: vfs->host_name=%s", thisfn, nsi->private->vfs->host_name );
+ g_debug( "%s: vfs->host_port=%d", thisfn, nsi->private->vfs->host_port );
+ g_debug( "%s: vfs->user_name=%s", thisfn, nsi->private->vfs->user_name );
+ g_debug( "%s: vfs->password=%s", thisfn, nsi->private->vfs->password );
+}
+
static NASelectedInfo *
new_from_nautilus_file_info( NautilusFileInfo *item )
{
@@ -440,6 +455,7 @@ new_from_uri( const gchar *uri )
query_file_attributes( info );
na_gnome_vfs_uri_parse( info->private->vfs, info->private->uri );
+ dump( info );
return( info );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]