diff options
author | François Revol <revol@free.fr> | 2014-01-16 17:27:31 +0100 |
---|---|---|
committer | François Revol <revol@free.fr> | 2014-01-16 17:28:16 +0100 |
commit | 90742e6b4bb39b8821c08c95022fcdbee9e81557 (patch) | |
tree | 5aabef13edd22c48620d4f77a22deff2cc7235d0 /beos/gui.cpp | |
parent | 7c71ad4f5a0fe6d4bce4eb9f65ececed36de2014 (diff) | |
download | netsurf-90742e6b4bb39b8821c08c95022fcdbee9e81557.tar.gz netsurf-90742e6b4bb39b8821c08c95022fcdbee9e81557.tar.bz2 |
beos: Fix build
gcc2 doesn't know about named initializers in C++...
Diffstat (limited to 'beos/gui.cpp')
-rw-r--r-- | beos/gui.cpp | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/beos/gui.cpp b/beos/gui.cpp index 4a6475894..9e730a0c8 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -70,7 +70,7 @@ extern "C" { #include "beos/window.h" #include "beos/throbber.h" #include "beos/filetype.h" -//#include "beos/download.h" +#include "beos/download.h" #include "beos/schedule.h" #include "beos/fetch_rsrc.h" #include "beos/scaffolding.h" @@ -1059,18 +1059,21 @@ static bool path_add_part(char *path, int length, const char *newpart) } static struct gui_clipboard_table beos_clipboard_table = { - .get = gui_get_clipboard, - .set = gui_set_clipboard, + gui_get_clipboard, + gui_set_clipboard, }; static struct gui_browser_table beos_browser_table = { - .poll = gui_poll, - .quit = gui_quit, - .get_resource_url = gui_get_resource_url, - .launch_url = gui_launch_url, - .filename_from_path = filename_from_path, - .path_add_part = path_add_part, - .login = gui_401login_open, + gui_poll, + filename_from_path, + path_add_part, + gui_quit, + NULL, //set_search_ico + gui_get_resource_url, + gui_launch_url, + NULL, //create_form_select_menu + NULL, //cert_verify + gui_401login_open }; @@ -1080,10 +1083,10 @@ int main(int argc, char** argv) nserror ret; BPath options; struct gui_table beos_gui_table = { - .browser = &beos_browser_table, - .window = beos_window_table, - .clipboard = &beos_clipboard_table, - .download = beos_download_table, + &beos_browser_table, + beos_window_table, + beos_download_table, + &beos_clipboard_table }; if (find_directory(B_USER_SETTINGS_DIRECTORY, &options, true) == B_OK) { @@ -1131,10 +1134,10 @@ int gui_init_replicant(int argc, char** argv) nserror ret; BPath options; struct gui_table beos_gui_table = { - .browser = &beos_browser_table, - .window = beos_window_table, - .clipboard = &beos_clipboard_table, - .download = beos_download_table, + &beos_browser_table, + beos_window_table, + beos_download_table, + &beos_clipboard_table }; if (find_directory(B_USER_SETTINGS_DIRECTORY, &options, true) == B_OK) { |