[vte] widget: Store the VteTerminal in VteTerminalPrivate
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Store the VteTerminal in VteTerminalPrivate
- Date: Fri, 13 Nov 2015 17:27:52 +0000 (UTC)
commit 5a8d5dc512df5c490b7c5f4c355feabe58a99d2c
Author: Christian Persch <chpe gnome org>
Date: Fri Nov 13 18:27:15 2015 +0100
widget: Store the VteTerminal in VteTerminalPrivate
src/vte.cc | 2 +-
src/vteinternal.hh | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 72115de..2c9eb4c 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9068,7 +9068,7 @@ vte_terminal_init(VteTerminal *terminal)
/* Initialize private data. */
place = G_TYPE_INSTANCE_GET_PRIVATE (terminal, VTE_TYPE_TERMINAL, VteTerminalPrivate);
- pvt = terminal->pvt = new (place) VteTerminalPrivate();
+ pvt = terminal->pvt = new (place) VteTerminalPrivate(terminal);
gtk_widget_set_can_focus(&terminal->widget, TRUE);
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 7573ada..d46dc50 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -180,9 +180,13 @@ struct vte_scrolling_region {
/* Terminal private data. */
class VteTerminalPrivate {
public:
- VteTerminalPrivate() { }
+ VteTerminalPrivate(VteTerminal *t) : m_terminal(t), m_widget(&t->widget) { }
~VteTerminalPrivate() { }
+
public:
+ VteTerminal *m_terminal;
+ GtkWidget *m_widget;
+
/* Metric and sizing data: dimensions of the window */
glong row_count;
glong column_count;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]