summaryrefslogtreecommitdiff
path: root/beos
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 /beos
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 'beos')
-rw-r--r--beos/window.cpp21
1 files changed, 3 insertions, 18 deletions
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,