summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-12 22:55:26 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-12 22:55:26 +0000
commit4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (patch)
tree311a26dd1e0d387172cfd28d83a6e92b6d2538f4 /monkey
parentb7736bae2f37675be55b1c89d33b03e8603b2946 (diff)
downloadnetsurf-4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b.tar.gz
netsurf-4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b.tar.bz2
move more optional window operations into table including removing unused hide_pointer operation altogether
Diffstat (limited to 'monkey')
-rw-r--r--monkey/browser.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/monkey/browser.c b/monkey/browser.c
index ed0398142..985174d82 100644
--- a/monkey/browser.c
+++ b/monkey/browser.c
@@ -142,7 +142,7 @@ gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
*height = g->height;
}
-void
+static void
gui_window_new_content(struct gui_window *g)
{
fprintf(stdout, "WINDOW NEW_CONTENT WIN %u\n", g->win_num);
@@ -293,7 +293,7 @@ gui_window_get_scroll(struct gui_window *g, int *sx, int *sy)
return true;
}
-bool
+static bool
gui_window_scroll_start(struct gui_window *g)
{
fprintf(stdout, "WINDOW SCROLL_START WIN %u\n", g->win_num);
@@ -301,7 +301,7 @@ gui_window_scroll_start(struct gui_window *g)
return true;
}
-void
+static void
gui_window_scroll_visible(struct gui_window *g, int x0, int y0,
int x1, int y1)
{
@@ -573,6 +573,9 @@ static struct gui_window_table gui_window_table = {
.drag_start = gui_window_drag_start,
.save_link = gui_window_save_link,
+ .scroll_visible = gui_window_scroll_visible,
+ .scroll_start = gui_window_scroll_start,
+ .new_content = gui_window_new_content,
.start_throbber = gui_window_start_throbber,
.stop_throbber = gui_window_stop_throbber,
};