summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@src.gnome.org>2002-08-08 05:38:35 +0000
committerNalin Dahyabhai <nalin@src.gnome.org>2002-08-08 05:38:35 +0000
commitd094196b7dc5fdc59328b546fd02f8be19cfe2a9 (patch)
tree28e72229153d3395cc2d47fc427e8c44003ccee8
parent71d5d3b968eb61c1b26765fe64bc7abac5915ced (diff)
rewrite.vte_0_7_2
* src/vte.c(vte_terminal_invalidate_all): rewrite.
-rw-r--r--ChangeLog2
-rw-r--r--src/vte.c11
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 973ea5b..2569bcd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
2002-08-08 nalin
+ * src/vte.c(vte_terminal_invalidate_all): rewrite.
+2002-08-08 nalin
* src/vte.c(vte_terminal_paint,vte_terminal_draw_cells): fill in the
background color when drawing the cursor, even if it's going to end up
as the default background color, spotted by Peter Jones. Draw the
diff --git a/src/vte.c b/src/vte.c
index d75e5e9..e69ccf2 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -541,7 +541,7 @@ vte_invalidate_cells(VteTerminal *terminal,
static void
vte_invalidate_all(VteTerminal *terminal)
{
- GdkRectangle *rect;
+ GdkRectangle rect;
GtkWidget *widget;
g_return_if_fail(VTE_IS_TERMINAL(terminal));
if (!GTK_IS_WIDGET(terminal)) {
@@ -551,8 +551,13 @@ vte_invalidate_all(VteTerminal *terminal)
if (!GTK_WIDGET_REALIZED(widget)) {
return;
}
- rect = &widget->allocation;
- gdk_window_invalidate_rect((GTK_WIDGET(terminal))->window, rect, TRUE);
+ rect.x = 0;
+ rect.y = 0;
+ rect.width = terminal->column_count * terminal->char_width +
+ 2 * VTE_PAD_WIDTH;
+ rect.height = terminal->row_count * terminal->char_height +
+ 2 * VTE_PAD_WIDTH;
+ gdk_window_invalidate_rect((GTK_WIDGET(terminal))->window, &rect, TRUE);
}
/* Scroll a rectangular region up or down by a fixed number of lines. */