summaryrefslogtreecommitdiff
path: root/amiga/gui.c
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 /amiga/gui.c
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 'amiga/gui.c')
-rw-r--r--amiga/gui.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index f7c9b92a5..8c2f43e73 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -4545,12 +4545,6 @@ void gui_window_set_scroll(struct gui_window *g, int sx, int sy)
// g->shared->new_content = false;
}
-void gui_window_scroll_visible(struct gui_window *g, int x0, int y0,
- int x1, int y1)
-{
- gui_window_set_scroll(g, x0, y0);
-}
-
void gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
bool scaled)
{
@@ -4825,7 +4819,7 @@ void gui_window_remove_caret(struct gui_window *g)
g->c_h = 0;
}
-void gui_window_new_content(struct gui_window *g)
+static void gui_window_new_content(struct gui_window *g)
{
hlcache_handle *c;
@@ -4845,11 +4839,6 @@ void gui_window_new_content(struct gui_window *g)
ami_gui_update_hotlist_button(g->shared);
}
-bool gui_window_scroll_start(struct gui_window *g)
-{
- return true;
-}
-
static bool gui_window_drag_start(struct gui_window *g, gui_drag_type type,
const struct rect *rect)
{
@@ -5102,6 +5091,7 @@ static struct gui_window_table ami_window_table = {
.set_url = gui_window_set_url,
.drag_start = gui_window_drag_start,
+ .new_content = gui_window_new_content,
.start_throbber = gui_window_start_throbber,
.stop_throbber = gui_window_stop_throbber,