[vte/vte-next: 164/223] Move method to VteBuffer
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next: 164/223] Move method to VteBuffer
- Date: Wed, 22 Jun 2011 21:02:23 +0000 (UTC)
commit 283c82c6b4ceaaef94e9221c169229e146243855
Author: Christian Persch <chpe gnome org>
Date: Sun Jun 12 14:24:48 2011 +0200
Move method to VteBuffer
src/vteseq.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/vteseq.c b/src/vteseq.c
index 69ff85b..a4b2e32 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -185,10 +185,10 @@ vte_parse_color (const char *spec, GdkRGBA *rgba)
/* Some common functions */
static void
-_vte_terminal_home_cursor (VteTerminal *terminal)
+_vte_buffer_home_cursor (VteBuffer *buffer)
{
VteScreen *screen;
- screen = terminal->pvt->screen;
+ screen = buffer->pvt->screen;
screen->cursor_current.row = screen->insert_delta;
screen->cursor_current.col = 0;
}
@@ -777,7 +777,7 @@ vte_sequence_handler_decset_internal(VteTerminal *terminal,
* to it, and home the cursor. */
if (set) {
_vte_terminal_clear_screen (terminal);
- _vte_terminal_home_cursor (terminal);
+ _vte_buffer_home_cursor (terminal->term_pvt->buffer);
}
/* Reset scrollbars and repaint everything. */
gtk_adjustment_set_value(terminal->pvt->vadjustment,
@@ -1084,7 +1084,7 @@ static void
vte_sequence_handler_cl (VteTerminal *terminal, GValueArray *params)
{
_vte_terminal_clear_screen (terminal);
- _vte_terminal_home_cursor (terminal);
+ _vte_buffer_home_cursor (terminal->term_pvt->buffer);
/* We've modified the display. Make a note of it. */
terminal->pvt->text_deleted_flag = TRUE;
@@ -1144,7 +1144,7 @@ vte_sequence_handler_cs (VteTerminal *terminal, GValueArray *params)
GValue *value;
VteScreen *screen;
- _vte_terminal_home_cursor (terminal);
+ _vte_buffer_home_cursor (terminal->term_pvt->buffer);
/* We require two parameters. Anything less is a reset. */
screen = terminal->pvt->screen;
@@ -1487,7 +1487,7 @@ vte_sequence_handler_fs (VteTerminal *terminal, GValueArray *params)
static void
vte_sequence_handler_ho (VteTerminal *terminal, GValueArray *params)
{
- _vte_terminal_home_cursor (terminal);
+ _vte_buffer_home_cursor (terminal->term_pvt->buffer);
}
/* Move the cursor to a specified position. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]