diff options
Diffstat (limited to 'gtk/gui.c')
-rw-r--r-- | gtk/gui.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1163,7 +1163,7 @@ int main(int argc, char** argv) { char *messages; nserror ret; - struct gui_table nsgtk_gui_table = { + struct netsurf_table nsgtk_table = { .browser = &nsgtk_browser_table, .window = nsgtk_window_table, .clipboard = nsgtk_clipboard_table, @@ -1172,6 +1172,11 @@ int main(int argc, char** argv) .search = nsgtk_search_table, }; + ret = netsurf_register(&nsgtk_table); + if (ret != NSERROR_OK) { + die("NetSurf operation table failed registration"); + } + /* build the common resource path list */ respaths = nsgtk_init_resource("${HOME}/.netsurf/:${NETSURFRES}:"GTK_RESPATH":./gtk/res"); @@ -1206,7 +1211,7 @@ int main(int argc, char** argv) messages = filepath_find(respaths, "Messages"); /* core initialisation */ - ret = netsurf_init(messages, &nsgtk_gui_table); + ret = netsurf_init(messages); free(messages); if (ret != NSERROR_OK) { fprintf(stderr, "NetSurf core failed to initialise (%s)\n", |