[vte] widget: Move some methods to VteTerminalPrivate



commit eb5fa93f3e929ab29906e11ccfb784610a98c820
Author: Christian Persch <chpe gnome org>
Date:   Mon Nov 30 17:23:34 2015 +0100

    widget: Move some methods to VteTerminalPrivate

 src/vte-private.h |    1 -
 src/vte.cc        |    6 ------
 src/vteaccess.cc  |    4 ++--
 3 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/vte-private.h b/src/vte-private.h
index 76a74a9..1b7d65a 100644
--- a/src/vte-private.h
+++ b/src/vte-private.h
@@ -58,7 +58,6 @@ char* _vte_terminal_get_selection(VteTerminal *terminal);
 void _vte_terminal_get_start_selection(VteTerminal *terminal, long *x, long *y);
 void _vte_terminal_get_end_selection(VteTerminal *terminal, long *x, long *y);
 void _vte_terminal_select_text(VteTerminal *terminal, long start_x, long start_y, long end_x, long end_y, 
int start_offset, int end_offset);
-void _vte_terminal_remove_selection(VteTerminal *terminal);
 
 VteRowData *_vte_terminal_ensure_row(VteTerminal *terminal);
 VteRowData * _vte_new_row_data(VteTerminal *terminal);
diff --git a/src/vte.cc b/src/vte.cc
index 7c83bd8..96eb85c 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -10621,12 +10621,6 @@ _vte_terminal_select_text(VteTerminal *terminal,
 
 }
 
-void
-_vte_terminal_remove_selection(VteTerminal *terminal)
-{
-       terminal->pvt->deselect_all();
-}
-
 static void
 _vte_terminal_select_empty_at(VteTerminal *terminal,
                              long col, long row)
diff --git a/src/vteaccess.cc b/src/vteaccess.cc
index da46d7c..942671e 100644
--- a/src/vteaccess.cc
+++ b/src/vteaccess.cc
@@ -1474,7 +1474,7 @@ vte_terminal_accessible_remove_selection(AtkText *text,
 
        terminal = VTE_TERMINAL (widget);
        if (selection_number == 0 && vte_terminal_get_has_selection (terminal)) {
-               _vte_terminal_remove_selection (terminal);
+               terminal->pvt->deselect_all();
                return TRUE;
        } else {
                return FALSE;
@@ -1502,7 +1502,7 @@ vte_terminal_accessible_set_selection(AtkText *text, gint selection_number,
                return FALSE;
        }
        if (vte_terminal_get_has_selection (terminal)) {
-               _vte_terminal_remove_selection (terminal);
+               terminal->pvt->deselect_all();
        }
 
        return vte_terminal_accessible_add_selection (text, start_offset, end_offset);


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