From 4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 12 Jan 2014 22:55:26 +0000 Subject: move more optional window operations into table including removing unused hide_pointer operation altogether --- atari/gui.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'atari') diff --git a/atari/gui.c b/atari/gui.c index 24577c5aa..7aa0dee07 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -418,13 +418,6 @@ void gui_window_set_scroll(struct gui_window *w, int sx, int sy) } -void gui_window_scroll_visible(struct gui_window *w, int x0, int y0, int x1, int y1) -{ - LOG(("%s:(%p, %d, %d, %d, %d)", __func__, w, x0, y0, x1, y1)); - gui_window_set_scroll(w,x0,y0); -} - - /* It seems this method is called when content size got adjusted, so that we can adjust scroll info. We also have to call it when tab change occurs. @@ -534,11 +527,6 @@ void gui_window_set_pointer(struct gui_window *gw, gui_pointer_shape shape) } } -void gui_window_hide_pointer(struct gui_window *w) -{ - TODO(); -} - static void gui_window_set_url(struct gui_window *w, const char *url) { @@ -658,7 +646,7 @@ gui_window_set_icon(struct gui_window *g, hlcache_handle *icon) } } -void gui_window_new_content(struct gui_window *w) +static void gui_window_new_content(struct gui_window *w) { struct gemtk_wm_scroll_info_s *slid = gemtk_wm_get_scroll_info(w->root->win); slid->x_pos = 0; @@ -667,13 +655,6 @@ void gui_window_new_content(struct gui_window *w) gui_window_redraw_window(w); } -bool gui_window_scroll_start(struct gui_window *w) -{ - TODO(); - return true; -} - - void gui_drag_save_object(gui_save_type type, hlcache_handle *c, struct gui_window *w) { @@ -1094,6 +1075,7 @@ static struct gui_window_table atari_window_table = { .set_url = gui_window_set_url, .set_icon = gui_window_set_icon, + .new_content = gui_window_new_content, .start_throbber = gui_window_start_throbber, .stop_throbber = gui_window_stop_throbber, }; -- cgit v1.2.3