From 48ace0dd89c1be4794f1a3d430718ee8ad350bd6 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Fri, 14 May 2004 19:59:09 +0000 Subject: [project @ 2004-05-14 19:59:09 by rjw] Interactive help tokens now fall back to their base key when not available. Help menu is now fully implemented. F1 opens the help page. svn path=/import/netsurf/; revision=864 --- riscos/gui.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'riscos/gui.c') diff --git a/riscos/gui.c b/riscos/gui.c index 6570a5f59..8cc7256bb 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1263,15 +1263,19 @@ void ro_gui_screen_size(int *width, int *height) } -void ro_gui_open_help_page(void) +/** + * Opens a language sensitive help page + * + * \param page the page to open + */ +void ro_gui_open_help_page(char *page) { char url[80]; - sprintf(url, "file:///%%3CNetSurf$Dir%%3E/Docs/docs_%s", - option_language); + sprintf(url, "file:///%%3CNetSurf$Dir%%3E/Docs/%s_%s", + page, option_language); browser_window_create(url, NULL); } - /** * Send the source of a content to a text editor. */ -- cgit v1.2.3