From b412b93701b3e4327d1eed88ecc27b093c571f61 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 21 Jul 2012 14:55:51 +0100 Subject: Use online docs. --- riscos/gui.c | 18 ------------------ riscos/gui.h | 1 - riscos/iconbar.c | 4 +++- riscos/window.c | 16 ++++++++++++---- 4 files changed, 15 insertions(+), 24 deletions(-) (limited to 'riscos') diff --git a/riscos/gui.c b/riscos/gui.c index 945f93770..e11679b82 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -2113,24 +2113,6 @@ void ro_gui_screen_size(int *width, int *height) } -/** - * Opens a language sensitive help page - * - * \param page the page to open - */ -void ro_gui_open_help_page(const char *page) -{ - char url[80]; - int length; - - if ((length = snprintf(url, sizeof url, - "file:////Docs/%s_%s", - page, nsoption_charp(language))) >= 0 && - length < (int)sizeof(url)) - browser_window_create(url, NULL, 0, true, false); -} - - /** * Send the source of a content to a text editor. */ diff --git a/riscos/gui.h b/riscos/gui.h index 14835274b..cd70a39a0 100644 --- a/riscos/gui.h +++ b/riscos/gui.h @@ -114,7 +114,6 @@ extern struct gui_window *ro_gui_current_redraw_gui; /* in gui.c */ void ro_gui_open_window_request(wimp_open *open); -void ro_gui_open_help_page(const char *page); void ro_gui_screen_size(int *width, int *height); void ro_gui_view_source(struct hlcache_handle *c); void ro_gui_dump_content(struct hlcache_handle *c); diff --git a/riscos/iconbar.c b/riscos/iconbar.c index 0aa591a45..24d8661cc 100644 --- a/riscos/iconbar.c +++ b/riscos/iconbar.c @@ -183,7 +183,9 @@ bool ro_gui_iconbar_menu_select(wimp_w w, wimp_i i, wimp_menu *menu, switch (action) { case HELP_OPEN_CONTENTS: - ro_gui_open_help_page("documentation/index"); + browser_window_create( + "http://www.netsurf-browser.org/documentation/", + NULL, 0, true, false); return true; case BROWSER_NAVIGATE_URL: ro_gui_dialog_prepare_open_url(); diff --git a/riscos/window.c b/riscos/window.c index 8287878fe..deae43c25 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1917,7 +1917,9 @@ bool ro_gui_window_handle_local_keypress(struct gui_window *g, wimp_key *key, switch (c) { case IS_WIMP_KEY + wimp_KEY_F1: /* Help. */ - ro_gui_open_help_page("documentation/index"); + browser_window_create( + "http://www.netsurf-browser.org/documentation/", + NULL, 0, true, false); return true; case IS_WIMP_KEY + wimp_KEY_CONTROL + wimp_KEY_F1: @@ -2642,13 +2644,19 @@ bool ro_gui_window_menu_select(wimp_w w, wimp_i i, wimp_menu *menu, /* help actions */ case HELP_OPEN_CONTENTS: - ro_gui_open_help_page("documentation/index"); + browser_window_create( + "http://www.netsurf-browser.org/documentation/", + NULL, 0, true, false); break; case HELP_OPEN_GUIDE: - ro_gui_open_help_page("documentation/guide"); + browser_window_create( + "http://www.netsurf-browser.org/documentation/guide", + NULL, 0, true, false); break; case HELP_OPEN_INFORMATION: - ro_gui_open_help_page("documentation/info"); + browser_window_create( + "http://www.netsurf-browser.org/documentation/info", + NULL, 0, true, false); break; case HELP_OPEN_CREDITS: browser_window_create("about:credits", NULL, 0, true, false); -- cgit v1.2.3