[gedit] tab: print debug progress only once



commit 50b38daba307b060054c07c3f95df7e35e0be879
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Jun 15 20:03:30 2014 +0200

    tab: print debug progress only once
    
    And fix the FORMAT.

 gedit/gedit-tab.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 592ade1..57a5bd3 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -881,7 +881,7 @@ info_bar_set_progress (GeditTab *tab,
        if (tab->priv->info_bar == NULL)
                return;
 
-       gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
+       gedit_debug_message (DEBUG_TAB, "%" G_GOFFSET_FORMAT "/%" G_GOFFSET_FORMAT, size, total_size);
 
        g_return_if_fail (GEDIT_IS_PROGRESS_INFO_BAR (tab->priv->info_bar));
 
@@ -919,8 +919,6 @@ document_loading (GeditDocument *document,
        g_return_if_fail ((tab->priv->state == GEDIT_TAB_STATE_LOADING) ||
                          (tab->priv->state == GEDIT_TAB_STATE_REVERTING));
 
-       gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
-
        if (tab->priv->timer == NULL)
        {
                tab->priv->timer = g_timer_new ();
@@ -1153,8 +1151,6 @@ document_saving (GeditDocument *document,
 
        g_return_if_fail (tab->priv->state == GEDIT_TAB_STATE_SAVING);
 
-       gedit_debug_message (DEBUG_TAB, "%" G_GUINT64_FORMAT "/%" G_GUINT64_FORMAT, size, total_size);
-
        if (tab->priv->timer == NULL)
        {
                tab->priv->timer = g_timer_new ();


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