[vte] widget: Move some methods to VteTerminalPrivate



commit 662c9e359ec570550a40ee082b843bcaf2afb7e7
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      |   10 ++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 21c0f18..e663b9f 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -1129,6 +1129,8 @@ public:
         inline void seq_ce();
         void set_cursor_column(vte::grid::column_t col);
         void set_cursor_row(vte::grid::row_t row);
+
+        inline void set_keypad_mode(VteKeymode mode);
 };
 
 #define m_invalidated_all invalidated_all
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 281be17..5c964de 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -2375,13 +2375,19 @@ vte_sequence_handler_set_scrolling_region_to_end (VteTerminal *terminal, GValueA
         vte_sequence_handler_set_scrolling_region (terminal, params);
 }
 
+void
+VteTerminalPrivate::set_keypad_mode(VteKeymode mode)
+{
+        m_keypad_mode = mode;
+}
+
 /* Set the application or normal keypad. */
 static void
 vte_sequence_handler_application_keypad (VteTerminal *terminal, GValueArray *params)
 {
        _vte_debug_print(VTE_DEBUG_KEYBOARD,
                        "Entering application keypad mode.\n");
-       terminal->pvt->keypad_mode = VTE_KEYMODE_APPLICATION;
+       terminal->pvt->set_keypad_mode(VTE_KEYMODE_APPLICATION);
 }
 
 static void
@@ -2389,7 +2395,7 @@ vte_sequence_handler_normal_keypad (VteTerminal *terminal, GValueArray *params)
 {
        _vte_debug_print(VTE_DEBUG_KEYBOARD,
                        "Leaving application keypad mode.\n");
-       terminal->pvt->keypad_mode = VTE_KEYMODE_NORMAL;
+       terminal->pvt->set_keypad_mode(VTE_KEYMODE_NORMAL);
 }
 
 /* Same as cursor_character_absolute, not widely supported. */


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