mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix up GTK for r12574 API change.
svn path=/trunk/netsurf/; revision=12580
This commit is contained in:
parent
c9ff2da701
commit
639e2dbfef
11
gtk/window.c
11
gtk/window.c
@ -840,8 +840,7 @@ void gui_window_redraw_window(struct gui_window *g)
|
|||||||
gtk_widget_queue_draw(GTK_WIDGET(g->layout));
|
gtk_widget_queue_draw(GTK_WIDGET(g->layout));
|
||||||
}
|
}
|
||||||
|
|
||||||
void gui_window_update_box(struct gui_window *g,
|
void gui_window_update_box(struct gui_window *g, const struct rect *rect)
|
||||||
const union content_msg_data *data)
|
|
||||||
{
|
{
|
||||||
int sx, sy;
|
int sx, sy;
|
||||||
hlcache_handle *c = g->bw->current_content;
|
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);
|
gui_window_get_scroll(g, &sx, &sy);
|
||||||
|
|
||||||
gtk_widget_queue_draw_area(GTK_WIDGET(g->layout),
|
gtk_widget_queue_draw_area(GTK_WIDGET(g->layout),
|
||||||
data->redraw.x * g->bw->scale - sx,
|
rect->x0 * g->bw->scale - sx,
|
||||||
data->redraw.y * g->bw->scale - sy,
|
rect->y0 * g->bw->scale - sy,
|
||||||
data->redraw.width * g->bw->scale,
|
(rect->x1 - rect->x0) * g->bw->scale,
|
||||||
data->redraw.height * g->bw->scale);
|
(rect->y1 - rect->y0) * g->bw->scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gui_window_set_status(struct gui_window *g, const char *text)
|
void gui_window_set_status(struct gui_window *g, const char *text)
|
||||||
|
Loading…
Reference in New Issue
Block a user