[vte/vte-next: 174/223] Move method to VteBuffer
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next: 174/223] Move method to VteBuffer
- Date: Wed, 22 Jun 2011 21:03:13 +0000 (UTC)
commit 84d83b9299598ad094585fa3de72c2e88cb31187
Author: Christian Persch <chpe gnome org>
Date: Sun Jun 12 20:05:22 2011 +0200
Move method to VteBuffer
src/vte.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 3e38071..5e1d7e6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -2055,13 +2055,13 @@ vte_terminal_maybe_scroll_to_bottom(VteTerminal *terminal)
}
static void
-_vte_terminal_setup_utf8 (VteTerminal *terminal)
+_vte_buffer_setup_utf8 (VteBuffer *buffer)
{
- VteTerminalPrivate *pvt = terminal->pvt;
+ VteBufferPrivate *pvt = buffer->pvt;
GError *error = NULL;
if (!vte_pty_set_utf8(pvt->pty,
- strcmp(terminal->pvt->encoding, "UTF-8") == 0,
+ g_strcmp0(vte_buffer_get_encoding(buffer), "UTF-8") == 0,
&error)) {
g_warning ("Failed to set UTF8 mode: %s\n", error->message);
g_error_free (error);
@@ -12332,7 +12332,7 @@ vte_buffer_set_pty(VteBuffer *buffer,
vte_buffer_set_size(buffer, pvt->column_count, pvt->row_count);
- _vte_terminal_setup_utf8 (terminal);
+ _vte_buffer_setup_utf8 (buffer);
/* Open channels to listen for input on. */
_vte_terminal_connect_pty_read (terminal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]