summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-10 01:42:53 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2006-03-10 01:42:53 +0000
commit78f85340ae01a2c8fcad370521fd88d1669438d3 (patch)
treecdc097913b74176199eccedaaddb3fbe9baa09c3 /gtk
parentb58c92b030ef3acca6e5af1445b3db338dbd942d (diff)
downloadnetsurf-78f85340ae01a2c8fcad370521fd88d1669438d3.tar.gz
netsurf-78f85340ae01a2c8fcad370521fd88d1669438d3.tar.bz2
[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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_window.c8
1 files changed, 8 insertions, 0 deletions
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);
}