[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: Thu, 14 Jan 2016 16:12:01 +0000 (UTC)
commit 2acc7826a625dcd0b39e2b0f552273c0210a4bf0
Author: Christian Persch <chpe gnome org>
Date: Thu Jan 14 17:05:35 2016 +0100
widget: Move some methods to VteTerminalPrivate
src/vteinternal.hh | 2 ++
src/vteseq.cc | 14 +++++++++++++-
2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 789030f..21c0f18 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -1127,6 +1127,8 @@ public:
inline void seq_cb();
inline void seq_cd();
inline void seq_ce();
+ void set_cursor_column(vte::grid::column_t col);
+ void set_cursor_row(vte::grid::row_t row);
};
#define m_invalidated_all invalidated_all
diff --git a/src/vteseq.cc b/src/vteseq.cc
index ca40597..281be17 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -1190,7 +1190,19 @@ vte_sequence_handler_cursor_character_absolute (VteTerminal *terminal, GValueArr
}
}
- terminal->pvt->cursor.col = val;
+ terminal->pvt->set_cursor_column(val);
+}
+
+void
+VteTerminalPrivate::set_cursor_column(vte::grid::column_t col)
+{
+ m_cursor.col = col;
+}
+
+void
+VteTerminalPrivate::set_cursor_row(vte::grid::row_t row)
+{
+ m_cursor.row = row;
}
/* Move the cursor to the given position, 1-based. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]