summaryrefslogtreecommitdiff
path: root/monkey/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'monkey/main.c')
-rw-r--r--monkey/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/monkey/main.c b/monkey/main.c
index 419543e29..22aaf1e06 100644
--- a/monkey/main.c
+++ b/monkey/main.c
@@ -114,7 +114,7 @@ static bool nslog_stream_configure(FILE *fptr)
return true;
}
-static struct gui_table monkey_gui_table = {
+static struct gui_browser_table monkey_browser_table = {
.poll = monkey_poll,
.quit = monkey_quit,
.get_resource_url = gui_get_resource_url,
@@ -129,6 +129,11 @@ main(int argc, char **argv)
char *options;
char buf[PATH_MAX];
nserror ret;
+ struct gui_table monkey_gui_table = {
+ .browser = &monkey_browser_table,
+ .window = monkey_window_table,
+ .download = monkey_download_table,
+ };
/* Unbuffer stdin/out/err */
setbuf(stdin, NULL);
@@ -155,10 +160,6 @@ main(int argc, char **argv)
/* common initialisation */
messages = filepath_find(respaths, "Messages");
-
- monkey_gui_table.window = monkey_gui_window_table;
- monkey_gui_table.download = monkey_gui_download_table;
-
ret = netsurf_init(messages, &monkey_gui_table);
free(messages);
if (ret != NSERROR_OK) {