diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-11 12:19:57 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-11 12:19:57 +0000 |
commit | 0efd285302797848b7bec0f5dad95aa043e9aa1b (patch) | |
tree | 5bb5523bdbba1eb77c95076ea372757314ca0799 /riscos | |
parent | faa24817b496cb994f4306784c57d8a1da437df6 (diff) | |
download | netsurf-0efd285302797848b7bec0f5dad95aa043e9aa1b.tar.gz netsurf-0efd285302797848b7bec0f5dad95aa043e9aa1b.tar.bz2 |
[project @ 2004-06-11 12:19:56 by bursa]
New "About NetSurf" page, and menu item to open it.
svn path=/import/netsurf/; revision=960
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/gui.c | 4 | ||||
-rw-r--r-- | riscos/menus.c | 13 |
2 files changed, 11 insertions, 6 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 333e28ee9..37e4f1bd3 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -723,7 +723,7 @@ void ro_gui_icon_bar_click(wimp_pointer *pointer) int length; if ((length = snprintf(url, sizeof(url), - "file:///%%3CNetSurf$Dir%%3E/Docs/intro_%s", + "file:/<NetSurf$Dir>/Docs/intro_%s", option_language)) >= 0 && length < (int)sizeof(url)) browser_window_create(url, NULL); } else if (pointer->buttons == wimp_CLICK_ADJUST) { @@ -1286,7 +1286,7 @@ void ro_gui_open_help_page(const char *page) int length; if ((length = snprintf(url, sizeof url, - "file:///%%3CNetSurf$Dir%%3E/Docs/%s_%s", + "file:/<NetSurf$Dir>/Docs/%s_%s", page, option_language)) >= 0 && length < (int)sizeof(url)) browser_window_create(url, NULL); } diff --git a/riscos/menus.c b/riscos/menus.c index 576dfbb9b..f80ed673d 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -237,12 +237,13 @@ static wimp_MENU(4) utilities_menu = { /* Help submenu */ -static wimp_MENU(4) help_menu = { +static wimp_MENU(5) help_menu = { { "Help" }, 7,2,7,0, 300, 44, 0, { { 0, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "HelpContent" } }, { 0, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "HelpGuide" } }, { wimp_MENU_SEPARATE, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "HelpInfo" } }, + { wimp_MENU_SEPARATE, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "HelpAbout" } }, { wimp_MENU_LAST, wimp_NO_SUB_MENU, DEFAULT_FLAGS, { "HelpInter" } } } }; @@ -566,7 +567,11 @@ void ro_gui_menu_selection(wimp_selection *selection) case 2: /* User information */ ro_gui_open_help_page("info"); break; - case 3: /* Interactive help */ + case 3: /* About NetSurf */ + browser_window_create("file:/" + "<NetSurf$Dir>/Docs/about", 0); + break; + case 4: /* Interactive help */ xos_cli("Filer_Run Resources:$.Apps.!Help"); ro_gui_menu_prepare_help(true); break; @@ -850,9 +855,9 @@ void ro_gui_menu_prepare_scale(void) { */ void ro_gui_menu_prepare_help(int forced) { if (ro_gui_interactive_help_available() || (forced)) { - browser_help_menu->entries[3].icon_flags |= wimp_ICON_SHADED; + browser_help_menu->entries[4].icon_flags |= wimp_ICON_SHADED; } else { - browser_help_menu->entries[3].icon_flags &= ~wimp_ICON_SHADED; + browser_help_menu->entries[4].icon_flags &= ~wimp_ICON_SHADED; } } |