[vte] widget: Remove duplicated function
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Remove duplicated function
- Date: Fri, 20 Nov 2015 19:59:42 +0000 (UTC)
commit 20aba53367a2c6c330acfebc56e76d507a15ef0e
Author: Christian Persch <chpe gnome org>
Date: Fri Nov 20 20:58:31 2015 +0100
widget: Remove duplicated function
This was doing exactly the same as connect_pty_read(), so just use that.
src/vte.cc | 24 +++---------------------
1 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 1e7a238..f063842 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4242,24 +4242,6 @@ next_match:
_vte_incoming_chunks_count(m_incoming));
}
-static inline void
-_vte_terminal_enable_input_source (VteTerminal *terminal)
-{
- if (terminal->pvt->pty_channel == NULL) {
- return;
- }
-
- if (terminal->pvt->pty_input_source == 0) {
- _vte_debug_print (VTE_DEBUG_IO, "polling vte_terminal_io_read\n");
- terminal->pvt->pty_input_source =
- g_io_add_watch_full(terminal->pvt->pty_channel,
- VTE_CHILD_INPUT_PRIORITY,
- (GIOCondition)(G_IO_IN | G_IO_HUP),
- (GIOFunc) vte_terminal_io_read,
- terminal,
- (GDestroyNotify) mark_input_source_invalid);
- }
-}
static void
_vte_terminal_feed_chunks (VteTerminal *terminal, struct _vte_incoming_chunk *chunks)
{
@@ -11018,7 +11000,7 @@ process_timeout (gpointer data)
vte_terminal_io_read (terminal->pvt->pty_channel,
G_IO_IN, terminal);
}
- _vte_terminal_enable_input_source (terminal);
+ terminal->pvt->connect_pty_read();
}
if (need_processing (terminal)) {
active = TRUE;
@@ -11150,7 +11132,7 @@ update_repeat_timeout (gpointer data)
vte_terminal_io_read (terminal->pvt->pty_channel,
G_IO_IN, terminal);
}
- _vte_terminal_enable_input_source (terminal);
+ terminal->pvt->connect_pty_read();
}
terminal->pvt->emit_adjustment_changed();
if (need_processing (terminal)) {
@@ -11263,7 +11245,7 @@ update_timeout (gpointer data)
vte_terminal_io_read (terminal->pvt->pty_channel,
G_IO_IN, terminal);
}
- _vte_terminal_enable_input_source (terminal);
+ terminal->pvt->connect_pty_read();
}
terminal->pvt->emit_adjustment_changed();
if (need_processing (terminal)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]