[gtksourceview/wip/loader-saver: 2/2] FileSaver: move debug message



commit cbc9f505fe5b08618512a3639de314cf01ae8fca
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Dec 26 10:59:09 2013 +0100

    FileSaver: move debug message

 gtksourceview/gtksourcefilesaver.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcefilesaver.c b/gtksourceview/gtksourcefilesaver.c
index 86ca017..25a9020 100644
--- a/gtksourceview/gtksourcefilesaver.c
+++ b/gtksourceview/gtksourcefilesaver.c
@@ -670,6 +670,10 @@ replace_file_cb (GFile              *location,
        buffer_stream = GTK_SOURCE_BUFFER_INPUT_STREAM (saver->priv->input_stream);
        saver->priv->total_size = _gtk_source_buffer_input_stream_get_total_size (buffer_stream);
 
+       DEBUG ({
+              g_print ("Total number of characters: %" G_GINT64_FORMAT "\n", saver->priv->total_size);
+       });
+
        read_file_chunk (saver);
 }
 
@@ -683,8 +687,6 @@ begin_write (GtkSourceFileSaver *saver)
 
        DEBUG ({
               g_print ("Start replacing file contents\n");
-              /* FIXME is the size already set? */
-              g_print ("File contents size: %" G_GINT64_FORMAT "\n", saver->priv->total_size);
               g_print ("Make backup: %s\n", make_backup ? "yes" : "no");
        });
 


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