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 --- beos/window.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'beos') diff --git a/beos/window.cpp b/beos/window.cpp index c4a3784e5..66bb90640 100644 --- a/beos/window.cpp +++ b/beos/window.cpp @@ -406,12 +406,6 @@ static struct gui_window *gui_window_create(struct browser_window *bw, } -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 nsbeos_dispatch_event(BMessage *message) { struct gui_window *gui = NULL; @@ -1215,11 +1209,6 @@ void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape) delete cursor; } -void gui_window_hide_pointer(struct gui_window *g) -{ - //XXX no BView::HideCursor... use empty one -} - void gui_window_place_caret(struct gui_window *g, int x, int y, int height, const struct rect *clip) { @@ -1263,7 +1252,7 @@ void gui_window_remove_caret(struct gui_window *g) g->view->UnlockLooper(); } -void gui_window_new_content(struct gui_window *g) +static void gui_window_new_content(struct gui_window *g) { if (!g->toplevel) return; @@ -1279,12 +1268,6 @@ void gui_window_new_content(struct gui_window *g) g->view->UnlockLooper(); } -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) { @@ -1383,6 +1366,8 @@ static struct gui_window_table gui_window_table = { .create = gui_window_create, .destroy = gui_window_destroy, + .new_content = gui_window_new_content, + /* from scaffold */ .set_icon = gui_window_set_icon, .set_title = gui_window_set_title, -- cgit v1.2.3