diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-06 10:45:31 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-06 10:45:31 +0100 |
commit | 0f151e37cba454fcb863b6b38e1780f2b04be903 (patch) | |
tree | 5b0f84879eb2896158c4f3c4f82c0391c8ec3380 /monkey/browser.c | |
parent | f5c62c2291add5e6e3b8fc604831283e4883a3c6 (diff) | |
parent | 18aefabd20a16dda9ed5363088f0da5ada0d4431 (diff) | |
download | netsurf-0f151e37cba454fcb863b6b38e1780f2b04be903.tar.gz netsurf-0f151e37cba454fcb863b6b38e1780f2b04be903.tar.bz2 |
Merge branch 'vince/reformatpending'
Conflicts:
amiga/gui.c
Diffstat (limited to 'monkey/browser.c')
-rw-r--r-- | monkey/browser.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/monkey/browser.c b/monkey/browser.c index e61d6deb3..0e488c578 100644 --- a/monkey/browser.c +++ b/monkey/browser.c @@ -64,19 +64,13 @@ monkey_find_window_by_content(hlcache_handle *content) return ret; } -void -monkey_window_process_reformats(void) + +/** + * callback from core to reformat a window. + */ +static void monkey_window_reformat(struct gui_window *gw) { - RING_ITERATE_START(struct gui_window, gw_ring, c_ring) { - if (c_ring == NULL) - RING_ITERATE_STOP(gw_ring, c_ring); - if (c_ring->bw->reformat_pending) { - browser_window_reformat(c_ring->bw, - false, - c_ring->width, - c_ring->height); - } - } RING_ITERATE_END(gw_ring, c_ring); + browser_window_reformat(gw->bw, false, gw->width, gw->height); } void @@ -511,6 +505,7 @@ static struct gui_window_table window_table = { .set_scroll = gui_window_set_scroll, .get_dimensions = gui_window_get_dimensions, .update_extent = gui_window_update_extent, + .reformat = monkey_window_reformat, .set_title = gui_window_set_title, .set_url = gui_window_set_url, |