Commit a44035e9 authored by Kjartan Maraas's avatar Kjartan Maraas Committed by Kjartan Maraas

Remove some unused code. (vte_terminal_process_incoming): Don't emit

2005-11-30  Kjartan Maraas  <kmaraas@gnome.org>

	* src/vte.c: (vte_terminal_preedit_length): Remove some
	unused code.
	(vte_terminal_process_incoming): Don't emit signals for every
	character that's output. Patch from Padraig O'Briain. Huge
	performance gain when a11y is activated.
parent b27d00bb
2005-11-30 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_preedit_length): Remove some
unused code.
(vte_terminal_process_incoming): Don't emit signals for every
character that's output. Patch from Padraig O'Briain. Huge
performance gain when a11y is activated.
2005-11-16 Timur Jamakeev <timurj@cvs.gnome.org>
* confgiure.in: Added 'ky' to ALL_LINGUAS
......
......@@ -762,7 +762,6 @@ vte_terminal_preedit_width(VteTerminal *terminal, gboolean left_only)
static gssize
vte_terminal_preedit_length(VteTerminal *terminal, gboolean left_only)
{
gunichar c;
int i = 0;
const char *preedit = NULL;
......@@ -775,7 +774,6 @@ vte_terminal_preedit_length(VteTerminal *terminal, gboolean left_only)
(preedit[0] != '\0') &&
(!left_only || (i < terminal->pvt->im_preedit_cursor));
i++) {
c = g_utf8_get_char(preedit);
preedit = g_utf8_next_char(preedit);
}
}
......@@ -7599,8 +7597,6 @@ vte_terminal_process_incoming(VteTerminal *terminal)
vte_terminal_ensure_cursor(terminal, FALSE);
inserted = FALSE;
}
/* Flush any pending "inserted" signals. */
vte_terminal_emit_pending_text_signals(terminal, quark);
/* Call the right sequence handler for the requested
* behavior. */
again = vte_terminal_handle_sequence(GTK_WIDGET(terminal),
......@@ -7609,8 +7605,6 @@ vte_terminal_process_incoming(VteTerminal *terminal)
params);
/* Skip over the proper number of unicode chars. */
start = (next - wbuf);
/* Flush any pending signals. */
vte_terminal_emit_pending_text_signals(terminal, quark);
modified = TRUE;
} else
/* Second, we have a NULL match, and next points to the very
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment