[vte] widget: Move some methods to VteTerminalPrivate



commit ba9ba87f98efa204a0a83e2364729d976399482b
Author: Christian Persch <chpe gnome org>
Date:   Thu Jan 14 17:05:37 2016 +0100

    widget: Move some methods to VteTerminalPrivate

 src/vteinternal.hh |    4 +++-
 src/vteseq.cc      |   20 ++++++++++++++++----
 2 files changed, 19 insertions(+), 5 deletions(-)
---
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 56f421a..d1f881a 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -1144,7 +1144,6 @@ public:
         inline void seq_backspace();
         inline void seq_cursor_backward(vte::grid::column_t columns);
         inline void seq_cursor_forward(vte::grid::column_t columns);
-        inline void set_keypad_mode(VteKeymode mode);
         inline void seq_change_color_internal(char const* str,
                                               char const* terminator);
         inline void seq_reverse_index();
@@ -1152,6 +1151,9 @@ public:
         inline void seq_tab();
         inline void seq_tab_clear(long param);
         inline void seq_send_secondary_device_attributes();
+        inline void set_current_directory_uri_changed(char* uri /* adopted */);
+        inline void set_current_file_uri_changed(char* uri /* adopted */);
+        inline void set_keypad_mode(VteKeymode mode);
 };
 
 #define m_invalidated_all invalidated_all
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 710645b..3d9d762 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -2411,8 +2411,14 @@ vte_sequence_handler_set_current_directory_uri (VteTerminal *terminal, GValueArr
                 }
         }
 
-        g_free(terminal->pvt->current_directory_uri_changed);
-        terminal->pvt->current_directory_uri_changed = uri;
+        terminal->pvt->set_current_directory_uri_changed(uri);
+}
+
+void
+VteTerminalPrivate::set_current_directory_uri_changed(char* uri /* adopted */)
+{
+        g_free(m_current_directory_uri_changed);
+        m_current_directory_uri_changed = uri;
 }
 
 static void
@@ -2445,8 +2451,14 @@ vte_sequence_handler_set_current_file_uri (VteTerminal *terminal, GValueArray *p
                 }
         }
 
-        g_free(terminal->pvt->current_file_uri_changed);
-        terminal->pvt->current_file_uri_changed = uri;
+        terminal->pvt->set_current_file_uri_changed(uri);
+}
+
+void
+VteTerminalPrivate::set_current_file_uri_changed(char* uri /* adopted */)
+{
+        g_free(m_current_file_uri_changed);
+        m_current_file_uri_changed = uri;
 }
 
 /* Restrict the scrolling region. */


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