[vte] widget: Move some methods to VteTerminalPrivate
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Move some methods to VteTerminalPrivate
- Date: Sat, 28 Nov 2015 21:59:15 +0000 (UTC)
commit 898816907dfb099c85095cc4cf19ba5012e65718
Author: Christian Persch <chpe gnome org>
Date: Sat Nov 28 22:58:32 2015 +0100
widget: Move some methods to VteTerminalPrivate
src/vte.cc | 19 +++++++++----------
src/vteinternal.hh | 1 +
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 9ef44a8..1f7a4a7 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -6403,15 +6403,14 @@ VteTerminalPrivate::widget_paste(GdkAtom board)
}
}
-static void
-vte_terminal_invalidate_selection (VteTerminal *terminal)
+void
+VteTerminalPrivate::invalidate_selection()
{
- terminal->pvt->invalidate_region(
- terminal->pvt->selection_start.col,
- terminal->pvt->selection_end.col,
- terminal->pvt->selection_start.row,
- terminal->pvt->selection_end.row,
- terminal->pvt->selection_block_mode);
+ invalidate_region(m_selection_start.col,
+ m_selection_end.col,
+ m_selection_start.row,
+ m_selection_end.row,
+ m_selection_block_mode);
}
/* Confine coordinates into the visible area. Padding is already subtracted. */
@@ -6784,7 +6783,7 @@ VteTerminalPrivate::extend_selection(long x,
/* We don't support always_grow in block mode */
if (always_grow)
- vte_terminal_invalidate_selection(m_terminal);
+ invalidate_selection();
if (origin->y <= last->y) {
/* The origin point is "before" the last point. */
@@ -6950,7 +6949,7 @@ VteTerminalPrivate::extend_selection(long x,
if (invalidate_selected || !had_selection) {
_vte_debug_print(VTE_DEBUG_SELECTION, "Invalidating selection.");
- vte_terminal_invalidate_selection(m_terminal);
+ invalidate_selection();
}
_vte_debug_print(VTE_DEBUG_SELECTION,
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 6719ad0..c3a1abe 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -459,6 +459,7 @@ public:
void invalidate_region(vte::grid::column_t sc, vte::grid::column_t ec,
vte::grid::row_t sr, vte::grid::row_t er,
bool block = false);
+ void invalidate_selection();
void invalidate_all();
gssize get_preedit_width(bool left_only);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]