summaryrefslogtreecommitdiff
path: root/monkey/browser.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-13 01:08:15 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-13 01:08:15 +0000
commit7227c29bbacbc796e9f549cf21e8bd978fde5114 (patch)
treeecd935b801f61ea1d69eea576fcaaf57e4bd909c /monkey/browser.c
parent5a962586fb161651fc612ed8a8f6da99d8d22f65 (diff)
downloadnetsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.gz
netsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.bz2
move window scroll getter and setter into operations table
Diffstat (limited to 'monkey/browser.c')
-rw-r--r--monkey/browser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/monkey/browser.c b/monkey/browser.c
index 33f302089..706034cf2 100644
--- a/monkey/browser.c
+++ b/monkey/browser.c
@@ -166,7 +166,7 @@ gui_window_stop_throbber(struct gui_window *g)
fprintf(stdout, "WINDOW STOP_THROBBER WIN %u\n", g->win_num);
}
-void
+static void
gui_window_set_scroll(struct gui_window *g, int sx, int sy)
{
g->scrollx = sx;
@@ -283,7 +283,7 @@ gui_drag_save_object(gui_save_type type, hlcache_handle *c,
/* Ignore? */
}
-bool
+static bool
gui_window_get_scroll(struct gui_window *g, int *sx, int *sy)
{
fprintf(stdout, "WINDOW GET_SCROLL WIN %u X %d Y %d\n",
@@ -568,6 +568,8 @@ static struct gui_window_table gui_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,