diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 22:55:26 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 22:55:26 +0000 |
commit | 4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (patch) | |
tree | 311a26dd1e0d387172cfd28d83a6e92b6d2538f4 /cocoa | |
parent | b7736bae2f37675be55b1c89d33b03e8603b2946 (diff) | |
download | netsurf-4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b.tar.gz netsurf-4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b.tar.bz2 |
move more optional window operations into table including removing unused hide_pointer operation altogether
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/gui.m | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/cocoa/gui.m b/cocoa/gui.m index fcec64192..a94cbadb2 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -135,12 +135,6 @@ void gui_window_set_scroll(struct gui_window *g, int sx, int sy) [[(BrowserViewController *)g browserView] scrollPoint: cocoa_point( sx, sy )]; } -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) { @@ -205,10 +199,6 @@ void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape) } } -void gui_window_hide_pointer(struct gui_window *g) -{ -} - static void gui_window_set_url(struct gui_window *g, const char *url) { [(BrowserViewController *)g setUrl: [NSString stringWithUTF8String: url]]; @@ -255,16 +245,11 @@ void gui_window_remove_caret(struct gui_window *g) [[(BrowserViewController *)g browserView] removeCaret]; } -void gui_window_new_content(struct gui_window *g) +static void gui_window_new_content(struct gui_window *g) { [(BrowserViewController *)g contentUpdated]; } -bool gui_window_scroll_start(struct gui_window *g) -{ - return true; -} - void gui_drag_save_object(gui_save_type type, hlcache_handle *c, struct gui_window *g) { @@ -319,6 +304,7 @@ static struct gui_window_table cocoa_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, }; |