diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 10:27:41 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 10:27:41 +0000 |
commit | 56bb9582b16dfd45bbd1665adaf87c6c5986aed3 (patch) | |
tree | c92b65226b16977ddd0649a9be38d3ebdf06b6c0 /monkey | |
parent | c8496df3df7d059528f2d5e735be5c55bfa75ef6 (diff) | |
download | netsurf-56bb9582b16dfd45bbd1665adaf87c6c5986aed3.tar.gz netsurf-56bb9582b16dfd45bbd1665adaf87c6c5986aed3.tar.bz2 |
move set title, set url, start and stop throbber window operations to gui table
Diffstat (limited to 'monkey')
-rw-r--r-- | monkey/browser.h | 4 | ||||
-rw-r--r-- | monkey/main.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/monkey/browser.h b/monkey/browser.h index 0b1fd8d13..ab4e59bbb 100644 --- a/monkey/browser.h +++ b/monkey/browser.h @@ -46,5 +46,9 @@ void monkey_kill_browser_windows(void); struct gui_window *gui_window_create(struct browser_window *bw, struct browser_window *clone, bool new_tab); void gui_window_destroy(struct gui_window *g); +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_start_throbber(struct gui_window *g); +void gui_window_stop_throbber(struct gui_window *g); #endif /* NETSURF_MONKEY_BROWSER_H */ diff --git a/monkey/main.c b/monkey/main.c index 2ef3bb98f..73803f536 100644 --- a/monkey/main.c +++ b/monkey/main.c @@ -116,8 +116,14 @@ static bool nslog_stream_configure(FILE *fptr) static struct gui_table monkey_gui_table = { .poll = monkey_poll, .quit = monkey_quit, + .window_create = gui_window_create, .window_destroy = gui_window_destroy, + + .window_set_title = gui_window_set_title, + .window_set_url = gui_window_set_url, + .window_start_throbber = gui_window_start_throbber, + .window_stop_throbber = gui_window_stop_throbber, }; int |