[vte] widget: Move some methods to VteTerminalPrivate
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Move some methods to VteTerminalPrivate
- Date: Sun, 22 Nov 2015 20:07:33 +0000 (UTC)
commit fd108be732d261e1d9175f580caaad73eb9a8702
Author: Christian Persch <chpe gnome org>
Date: Sun Nov 22 21:07:01 2015 +0100
widget: Move some methods to VteTerminalPrivate
src/vte.cc | 10 +++++-----
src/vteinternal.hh | 1 +
src/vteseq.cc | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 98f290a..7caedf7 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -847,11 +847,11 @@ VteTerminalPrivate::emit_commit(char const* text,
}
void
-_vte_terminal_queue_contents_changed(VteTerminal *terminal)
+VteTerminalPrivate::queue_contents_changed()
{
_vte_debug_print(VTE_DEBUG_SIGNALS,
"Queueing `contents-changed'.\n");
- terminal->pvt->contents_changed_pending = TRUE;
+ m_contents_changed_pending = true;
}
//FIXMEchpe this has only one caller
@@ -4172,7 +4172,7 @@ next_match:
if (modified || (screen != m_screen)) {
/* Signal that the visible contents changed. */
- _vte_terminal_queue_contents_changed(m_terminal);
+ queue_contents_changed();
}
emit_pending_signals();
@@ -8039,7 +8039,7 @@ vte_terminal_handle_scroll(VteTerminal *terminal)
"Scrolling by %f\n", dy);
terminal->pvt->invalidate_all();
terminal->pvt->emit_text_scrolled(dy);
- _vte_terminal_queue_contents_changed(terminal);
+ terminal->pvt->queue_contents_changed();
} else {
_vte_debug_print(VTE_DEBUG_ADJ, "Not scrolling\n");
}
@@ -8362,7 +8362,7 @@ VteTerminalPrivate::widget_size_allocate(GtkAllocation *allocation)
vte_terminal_set_size(m_terminal, width, height);
/* Notify viewers that the contents have changed. */
- _vte_terminal_queue_contents_changed(m_terminal);
+ queue_contents_changed();
}
/* Resize the GDK window. */
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index b9676e1..fa39ee4 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -549,6 +549,7 @@ public:
void maybe_scroll_to_bottom();
void queue_cursor_moved();
+ void queue_contents_changed();
void emit_text_deleted();
void emit_text_inserted();
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 3935abb..1ffa62a 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -931,7 +931,7 @@ vte_sequence_handler_decset_internal(VteTerminal *terminal,
terminal->pvt->screen->scroll_delta);
vte_terminal_set_scrollback_lines(terminal,
terminal->pvt->scrollback_lines);
- _vte_terminal_queue_contents_changed(terminal);
+ terminal->pvt->queue_contents_changed();
terminal->pvt->invalidate_all();
break;
case 9:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]