[nautilus-actions] Improve debug message when displaying items



commit cf20facea8cc27693ab6b2113d3c74acf71bc304
Author: Pierre Wieser <pwieser trychlos org>
Date:   Thu Jul 9 17:10:30 2015 +0200

    Improve debug message when displaying items

 src/core/na-tokens.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/core/na-tokens.c b/src/core/na-tokens.c
index 51aac80..247bc83 100644
--- a/src/core/na-tokens.c
+++ b/src/core/na-tokens.c
@@ -246,6 +246,7 @@ instance_finalize( GObject *object )
 NATokens *
 na_tokens_new_for_example( void )
 {
+       static const gchar *thisfn = "na_tokens_new_for_example";
        NATokens *tokens;
        const gchar *ex_uri1 = _( "file:///path/to/file1.mid" );
        const gchar *ex_uri2 = _( "file:///path/to/file2.jpeg" );
@@ -259,6 +260,8 @@ na_tokens_new_for_example( void )
        GSList *is;
        gboolean first;
 
+       g_debug( "%s:", thisfn );
+
        tokens = g_object_new( NA_TYPE_TOKENS, NULL );
        first = TRUE;
        tokens->private->count = 2;
@@ -735,10 +738,14 @@ is_singular_exec( const NATokens *tokens, const gchar *exec )
 static gchar *
 parse_singular( const NATokens *tokens, const gchar *input, guint i, gboolean utf8, gboolean quoted )
 {
+       static const gchar *thisfn = "na_tokens_parse_singular";
        GString *output;
        gchar *iter, *prev_iter;
        const gchar *nth;
 
+       g_debug( "%s: tokens=%p, input=%s, i=%d, utf8=%s, quoted=%s",
+                       thisfn, ( void * ) tokens, input, i, utf8 ? "true":"false", quoted ? "true":"false" );
+
        output = g_string_new( "" );
 
        /* return NULL if input is NULL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]