diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-13 11:38:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-13 11:38:35 +0000 |
commit | d70e371cd99d35859b0514884163447fa793738a (patch) | |
tree | 0c255ba4ecee52becc72086f48fceea4eb35e90e /atari | |
parent | 7227c29bbacbc796e9f549cf21e8bd978fde5114 (diff) | |
download | netsurf-d70e371cd99d35859b0514884163447fa793738a.tar.gz netsurf-d70e371cd99d35859b0514884163447fa793738a.tar.bz2 |
move two more mandantory window operations to table
Diffstat (limited to 'atari')
-rw-r--r-- | atari/gui.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/atari/gui.c b/atari/gui.c index cb1b123bd..8357a0b0a 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -278,8 +278,11 @@ static void gui_window_destroy(struct gui_window *w) } } -void gui_window_get_dimensions(struct gui_window *w, int *width, int *height, - bool scaled) +static void +gui_window_get_dimensions(struct gui_window *w, + int *width, + int *height, + bool scaled) { if (w == NULL) return; @@ -423,7 +426,7 @@ static void gui_window_set_scroll(struct gui_window *w, int sx, int sy) so that we can adjust scroll info. We also have to call it when tab change occurs. */ -void gui_window_update_extent(struct gui_window *gw) +static void gui_window_update_extent(struct gui_window *gw) { if( gw->browser->bw->current_content != NULL ) { @@ -1075,6 +1078,8 @@ static struct gui_window_table atari_window_table = { .update = gui_window_update_box, .get_scroll = gui_window_get_scroll, .set_scroll = gui_window_set_scroll, + .get_dimensions = gui_window_get_dimensions, + .update_extent = gui_window_update_extent, .set_title = gui_window_set_title, .set_url = gui_window_set_url, |