[vte] widget: Move some methods to VteTerminalPrivate



commit 3f527d7292ff0a6bf4ac23f355fcaa1e29ca4ce2
Author: Christian Persch <chpe gnome org>
Date:   Sun Nov 22 21:07:01 2015 +0100

    widget: Move some methods to VteTerminalPrivate

 src/vte.cc    |   17 +++++------------
 src/vteseq.cc |   10 +++++-----
 2 files changed, 10 insertions(+), 17 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index f063842..9fa17be 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -494,13 +494,6 @@ VteTerminalPrivate::invalidate(vte::grid::span s,
         invalidate_region(s.start_column(), s.end_column(), s.start_row(), s.end_row(), block);
 }
 
-/* Redraw the entire visible portion of the window. */
-void
-_vte_invalidate_all(VteTerminal *terminal)
-{
-        terminal->pvt->invalidate_all();
-}
-
 void
 VteTerminalPrivate::invalidate_all()
 {
@@ -552,7 +545,7 @@ _vte_terminal_scroll_region (VteTerminal *terminal,
 
        if (count >= terminal->pvt->row_count) {
                /* We have to repaint the entire window. */
-               _vte_invalidate_all(terminal);
+               terminal->pvt->invalidate_all();
        } else {
                /* We have to repaint the area which is to be
                 * scrolled. */
@@ -2594,7 +2587,7 @@ _vte_terminal_set_color_internal(VteTerminal *terminal,
        if (entry == VTE_CURSOR_BG)
                _vte_invalidate_cursor_once(terminal, FALSE);
        else
-               _vte_invalidate_all (terminal);
+               terminal->pvt->invalidate_all();
 }
 
 static void
@@ -7684,7 +7677,7 @@ vte_terminal_apply_metrics(VteTerminal *terminal,
                                                    terminal->pvt->char_height);
        }
        /* Repaint. */
-       _vte_invalidate_all(terminal);
+       terminal->pvt->invalidate_all();
 }
 
 static void
@@ -8050,7 +8043,7 @@ vte_terminal_handle_scroll(VteTerminal *terminal)
        if (dy != 0) {
                _vte_debug_print(VTE_DEBUG_ADJ,
                            "Scrolling by %f\n", dy);
-                _vte_invalidate_all(terminal);
+                terminal->pvt->invalidate_all();
                terminal->pvt->emit_text_scrolled(dy);
                _vte_terminal_queue_contents_changed(terminal);
        } else {
@@ -10211,7 +10204,7 @@ vte_terminal_background_update(VteTerminal *terminal)
         _vte_draw_set_background_solid (terminal->pvt->draw, &color);
 
        /* Force a redraw for everything. */
-       _vte_invalidate_all (terminal);
+       terminal->pvt->invalidate_all();
 }
 
 static void
diff --git a/src/vteseq.cc b/src/vteseq.cc
index fd51d6e..3935abb 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -302,7 +302,7 @@ _vte_terminal_clear_screen (VteTerminal *terminal)
         terminal->pvt->cursor.row = row + screen->insert_delta;
        terminal->pvt->adjust_adjustments();
        /* Redraw everything. */
-       _vte_invalidate_all(terminal);
+       terminal->pvt->invalidate_all();
        /* We've modified the display.  Make a note of it. */
        terminal->pvt->text_deleted_flag = TRUE;
 }
@@ -913,7 +913,7 @@ vte_sequence_handler_decset_internal(VteTerminal *terminal,
                break;
        case 5:
                /* Repaint everything in reverse mode. */
-               _vte_invalidate_all(terminal);
+                terminal->pvt->invalidate_all();
                break;
        case 6:
                /* Reposition the cursor in its new home position. */
@@ -932,7 +932,7 @@ vte_sequence_handler_decset_internal(VteTerminal *terminal,
                vte_terminal_set_scrollback_lines(terminal,
                                terminal->pvt->scrollback_lines);
                _vte_terminal_queue_contents_changed(terminal);
-               _vte_invalidate_all (terminal);
+                terminal->pvt->invalidate_all();
                break;
        case 9:
        case 1000:
@@ -2845,7 +2845,7 @@ vte_sequence_handler_screen_alignment_test (VteTerminal *terminal, GValueArray *
                _vte_row_data_fill (rowdata, &cell, terminal->pvt->column_count);
                terminal->pvt->emit_text_inserted();
        }
-       _vte_invalidate_all(terminal);
+       terminal->pvt->invalidate_all();
 
        /* We modified the display, so make a note of it for completeness. */
        terminal->pvt->text_modified_flag = TRUE;
@@ -2972,7 +2972,7 @@ vte_sequence_handler_window_manipulation (VteTerminal *terminal, GValueArray *pa
         case 7:
                 _vte_debug_print(VTE_DEBUG_PARSE,
                                  "Refreshing window.\n");
-                _vte_invalidate_all(terminal);
+                terminal->pvt->invalidate_all();
                 vte_terminal_emit_refresh_window(terminal);
                 break;
         case 8:


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