[vte] widget: Remove expose event debug output



commit 9fc100d8fc626235d677119e09f02badd7772658
Author: Christian Persch <chpe gnome org>
Date:   Thu Mar 27 16:25:05 2014 +0100

    widget: Remove expose event debug output
    
    It's just ::draw now, no need for two separate debug messages for the same thing.

 src/vte.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index eb6ef1a..6dfa16c 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -10294,8 +10294,9 @@ vte_terminal_draw(GtkWidget *widget,
         if (!gdk_cairo_get_clip_rectangle (cr, &clip_rect))
                 return FALSE;
 
+        _vte_debug_print(VTE_DEBUG_LIFECYCLE, "vte_terminal_draw()\n");
         _vte_debug_print (VTE_DEBUG_WORK, "+");
-        _vte_debug_print (VTE_DEBUG_EVENTS, "Draw (%d,%d)x(%d,%d)\n",
+        _vte_debug_print (VTE_DEBUG_UPDATES, "Draw (%d,%d)x(%d,%d)\n",
                           clip_rect.x, clip_rect.y,
                           clip_rect.width, clip_rect.height);
 
@@ -10303,23 +10304,12 @@ vte_terminal_draw(GtkWidget *widget,
         if (region == NULL)
                 return FALSE;
 
-       _vte_debug_print(VTE_DEBUG_LIFECYCLE, "vte_terminal_paint()\n");
-       _vte_debug_print(VTE_DEBUG_WORK, "=");
-
        terminal = VTE_TERMINAL(widget);
        gtk_widget_get_allocation (widget, &allocation);
 
        /* Designate the start of the drawing operation and clear the area. */
        _vte_draw_start(terminal->pvt->draw);
 
-       _VTE_DEBUG_IF (VTE_DEBUG_UPDATES) {
-               cairo_rectangle_int_t clip;
-               cairo_region_get_extents (region, &clip);
-               g_printerr ("vte_terminal_paint"
-                               "       (%d,%d)x(%d,%d) pixels\n",
-                               clip.x, clip.y, clip.width, clip.height);
-       }
-
        _vte_draw_clip(terminal->pvt->draw, region);
        gtk_widget_get_allocation(&terminal->widget, &allocation);
        _vte_draw_clear (terminal->pvt->draw, 0, 0,
@@ -10782,7 +10772,6 @@ vte_terminal_class_init(VteTerminalClass *klass)
                                        "  *  _vte_invalidate_all\n"
                                        "  )  end _vte_terminal_process_incoming\n"
                                        "  -  gdk_window_process_updates\n"
-                                       "  +  vte_terminal_expose\n"
                                        "  =  vte_terminal_paint\n"
                                        "  ]} end update_timeout\n"
                                        "  >  end process_timeout\n");


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