[vte] widget: Move some calls to Widget constructor
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Move some calls to Widget constructor
- Date: Mon, 18 Nov 2019 21:42:49 +0000 (UTC)
commit 1aa5dd001b46bdb7e39e4495e2e55a963c21af24
Author: Christian Persch <chpe src gnome org>
Date: Mon Nov 18 22:42:22 2019 +0100
widget: Move some calls to Widget constructor
src/vte.cc | 6 ------
src/widget.cc | 6 ++++++
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index d3815076..93cbbdff 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7848,12 +7848,6 @@ Terminal::Terminal(vte::platform::Widget* w,
/* NOTE! We allocated zeroed memory, just fill in non-zero stuff. */
- gtk_widget_set_can_focus(m_widget, TRUE);
-
- /* We do our own redrawing. */
- // FIXMEchpe still necessary?
- gtk_widget_set_redraw_on_allocate(m_widget, FALSE);
-
m_invalidated_all = false;
// FIXMEegmont make this store row indices only, maybe convert to a bitmap
m_update_rects = g_array_sized_new(FALSE /* zero terminated */,
diff --git a/src/widget.cc b/src/widget.cc
index a3a796a0..6a628762 100644
--- a/src/widget.cc
+++ b/src/widget.cc
@@ -100,6 +100,12 @@ Widget::Widget(VteTerminal* t) noexcept :
m_vscroll_policy{GTK_SCROLL_NATURAL}
{
+ gtk_widget_set_can_focus(gtk(), true);
+
+ /* We do our own redrawing. */
+ // FIXMEchpe is this still necessary?
+ gtk_widget_set_redraw_on_allocate(gtk(), false);
+
/* Until Terminal init is completely fixed, use zero'd memory */
auto place = g_malloc0(sizeof(vte::terminal::Terminal));
m_terminal = new (place) vte::terminal::Terminal(this, t);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]