diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-13 01:08:15 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-13 01:08:15 +0000 |
commit | 7227c29bbacbc796e9f549cf21e8bd978fde5114 (patch) | |
tree | ecd935b801f61ea1d69eea576fcaaf57e4bd909c /cocoa/gui.m | |
parent | 5a962586fb161651fc612ed8a8f6da99d8d22f65 (diff) | |
download | netsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.gz netsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.bz2 |
move window scroll getter and setter into operations table
Diffstat (limited to 'cocoa/gui.m')
-rw-r--r-- | cocoa/gui.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cocoa/gui.m b/cocoa/gui.m index 5909fcddc..d193fa9c9 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -120,7 +120,7 @@ static void gui_window_update_box(struct gui_window *g, const struct rect *rect) [[(BrowserViewController *)g browserView] setNeedsDisplayInRect: nsrect]; } -bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy) +static bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy) { NSCParameterAssert( g != NULL && sx != NULL && sy != NULL ); @@ -130,7 +130,7 @@ bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy) return true; } -void gui_window_set_scroll(struct gui_window *g, int sx, int sy) +static void gui_window_set_scroll(struct gui_window *g, int sx, int sy) { [[(BrowserViewController *)g browserView] scrollPoint: cocoa_point( sx, sy )]; } @@ -301,6 +301,8 @@ static struct gui_window_table cocoa_window_table = { .destroy = gui_window_destroy, .redraw = gui_window_redraw_window, .update = gui_window_update_box, + .get_scroll = gui_window_get_scroll, + .set_scroll = gui_window_set_scroll, .set_title = gui_window_set_title, .set_url = gui_window_set_url, |