[vte] terminal: Move some initialisations to the class
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] terminal: Move some initialisations to the class
- Date: Mon, 18 Nov 2019 21:43:04 +0000 (UTC)
commit 43ae648458b99ac919f41b3504d12a504b027246
Author: Christian Persch <chpe src gnome org>
Date: Mon Nov 18 22:42:22 2019 +0100
terminal: Move some initialisations to the class
src/vte.cc | 4 +---
src/vteinternal.hh | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index d7dd796e..611a15e7 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7884,9 +7884,7 @@ Terminal::Terminal(vte::platform::Widget* w,
* be set up properly first. */
set_size(VTE_COLUMNS, VTE_ROWS);
- /* Scrolling options. */
- m_scroll_on_keystroke = TRUE;
- /* Default is -1, forces update in vte_terminal_set_scrollback_lines */
+ /* Default is 0, forces update in vte_terminal_set_scrollback_lines */
set_scrollback_lines(VTE_SCROLLBACK_INIT);
/* Selection info. */
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 123c348a..a4f50913 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -477,8 +477,8 @@ public:
gboolean m_rewrap_on_resize;
/* Scrolling options. */
- gboolean m_scroll_on_output;
- gboolean m_scroll_on_keystroke;
+ bool m_scroll_on_output{false};
+ bool m_scroll_on_keystroke{true};
vte::grid::row_t m_scrollback_lines{0};
/* Restricted scrolling */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]