summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2014-01-13 14:51:27 +0000
committerVincent Sanders <vince@netsurf-browser.org>2014-01-13 14:51:27 +0000
commite82d83f1847ebc369a5f48a18217a8f5fecf3824 (patch)
tree2319e225f0c1cb9fec95d184e84d71b0eed93858 /beos
parentd70e371cd99d35859b0514884163447fa793738a (diff)
downloadnetsurf-e82d83f1847ebc369a5f48a18217a8f5fecf3824.tar.gz
netsurf-e82d83f1847ebc369a5f48a18217a8f5fecf3824.tar.bz2
move four more optional window operations to table
Diffstat (limited to 'beos')
-rw-r--r--beos/scaffolding.h3
-rw-r--r--beos/window.cpp10
2 files changed, 9 insertions, 4 deletions
diff --git a/beos/scaffolding.h b/beos/scaffolding.h
index fe726147c..2dd364d08 100644
--- a/beos/scaffolding.h
+++ b/beos/scaffolding.h
@@ -202,8 +202,9 @@ void nsbeos_scaffolding_popup_menu(nsbeos_scaffolding *g, BPoint where);
void gui_window_set_title(struct gui_window *_g, const char *title);
void gui_window_set_url(struct gui_window *_g, const char *url);
+void gui_window_set_icon(struct gui_window *_g, hlcache_handle *icon);
+void gui_window_set_status(struct gui_window *_g, const char *text);
void gui_window_start_throbber(struct gui_window* _g);
void gui_window_stop_throbber(struct gui_window* _g);
-void gui_window_set_icon(struct gui_window *_g, hlcache_handle *icon);
#endif /* NETSURF_BEOS_SCAFFOLDING_H */
diff --git a/beos/window.cpp b/beos/window.cpp
index cff33a35b..84199242d 100644
--- a/beos/window.cpp
+++ b/beos/window.cpp
@@ -1169,7 +1169,7 @@ const uint8 kWatch2CursorBits[] = {
};
-void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape)
+static void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape)
{
BCursor *cursor = NULL;
bool allocated = false;
@@ -1209,7 +1209,7 @@ void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape)
delete cursor;
}
-void gui_window_place_caret(struct gui_window *g, int x, int y, int height,
+static void gui_window_place_caret(struct gui_window *g, int x, int y, int height,
const struct rect *clip)
{
//CALLED();
@@ -1230,7 +1230,7 @@ void gui_window_place_caret(struct gui_window *g, int x, int y, int height,
g->view->UnlockLooper();
}
-void gui_window_remove_caret(struct gui_window *g)
+static void gui_window_remove_caret(struct gui_window *g)
{
int oh = g->careth;
@@ -1373,11 +1373,15 @@ static struct gui_window_table gui_window_table = {
.update_extent = gui_window_update_extent,
.new_content = gui_window_new_content,
+ .set_pointer = gui_window_set_pointer,
+ .place_caret = gui_window_place_caret,
+ .remove_caret = gui_window_remove_caret,
/* from scaffold */
.set_icon = gui_window_set_icon,
.set_title = gui_window_set_title,
.set_url = gui_window_set_url,
+ .set_status = gui_window_set_status,
.start_throbber = gui_window_start_throbber,
.stop_throbber = gui_window_stop_throbber,
};