summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-07-06 12:53:23 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-07-06 12:53:23 +0000
commit639e2dbfef325910b6f42f010f54ad3359446c69 (patch)
treeae195fce554c01a0b2122af25a1fb133f6103c9e /gtk
parentc9ff2da70147b555bd7abb4650b7d016348de896 (diff)
downloadnetsurf-639e2dbfef325910b6f42f010f54ad3359446c69.tar.gz
netsurf-639e2dbfef325910b6f42f010f54ad3359446c69.tar.bz2
Fix up GTK for r12574 API change.
svn path=/trunk/netsurf/; revision=12580
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/window.c b/gtk/window.c
index dade0e5bf..b9aee38d2 100644
--- a/gtk/window.c
+++ b/gtk/window.c
@@ -840,8 +840,7 @@ void gui_window_redraw_window(struct gui_window *g)
gtk_widget_queue_draw(GTK_WIDGET(g->layout));
}
-void gui_window_update_box(struct gui_window *g,
- const union content_msg_data *data)
+void gui_window_update_box(struct gui_window *g, const struct rect *rect)
{
int sx, sy;
hlcache_handle *c = g->bw->current_content;
@@ -852,10 +851,10 @@ void gui_window_update_box(struct gui_window *g,
gui_window_get_scroll(g, &sx, &sy);
gtk_widget_queue_draw_area(GTK_WIDGET(g->layout),
- data->redraw.x * g->bw->scale - sx,
- data->redraw.y * g->bw->scale - sy,
- data->redraw.width * g->bw->scale,
- data->redraw.height * g->bw->scale);
+ rect->x0 * g->bw->scale - sx,
+ rect->y0 * g->bw->scale - sy,
+ (rect->x1 - rect->x0) * g->bw->scale,
+ (rect->y1 - rect->y0) * g->bw->scale);
}
void gui_window_set_status(struct gui_window *g, const char *text)