From 78f85340ae01a2c8fcad370521fd88d1669438d3 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 10 Mar 2006 01:42:53 +0000 Subject: [PATCH] [project @ 2006-03-10 01:42:53 by dsilvers] Ensure gui_window_update_box causes an expose of the right kind in the GTK frontend (enables animations etc) svn path=/import/netsurf/; revision=2118 --- gtk/gtk_window.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index 6c34a73a9..deaa104c0 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -269,6 +269,8 @@ void gui_window_set_title(struct gui_window *g, const char *title) void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1) { + fprintf(stderr, "Redrawing region %d,%d %dx%d\n", x0, y0, x1-x0+1, y1-y0+1); + gtk_widget_queue_draw_area(g->drawing_area, x0, y0, x1-x0+1, y1-y0+1); } @@ -281,6 +283,12 @@ void gui_window_redraw_window(struct gui_window* g) void gui_window_update_box(struct gui_window *g, const union content_msg_data *data) { + struct content *c = g->bw->current_content; + + if (!c) return; + + gtk_widget_queue_draw_area(g->drawing_area, data->redraw.x, data->redraw.y, + data->redraw.width, data->redraw.height); }