diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2003-09-16 20:02:55 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2003-09-16 20:02:55 +0000 |
commit | f4e447871bb0a84c71943b73344b987529567cea (patch) | |
tree | 816589c0bd64fd81336f6701e51b6a8bef7bd123 /riscos/gui.c | |
parent | 9a23a2bc77f45c4f43153af42b08c746361fa5c9 (diff) | |
download | netsurf-f4e447871bb0a84c71943b73344b987529567cea.tar.gz netsurf-f4e447871bb0a84c71943b73344b987529567cea.tar.bz2 |
[project @ 2003-09-16 20:02:55 by jmb]
Add dynamically created About page. Accessed via about:
svn path=/import/netsurf/; revision=294
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 39764a7d9..5636a528a 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -26,6 +26,7 @@ #include "netsurf/desktop/options.h" #include "netsurf/render/font.h" #include "netsurf/render/html.h" +#include "netsurf/riscos/about.h" #include "netsurf/riscos/gui.h" #include "netsurf/riscos/plugin.h" #include "netsurf/riscos/theme.h" @@ -1377,7 +1378,14 @@ void ro_gui_keypress(wimp_key* key) xfree(g->data.browser.bw->url); g->data.browser.bw->url = NULL; } - browser_window_open_location(g->data.browser.bw, g->url); + if (strcasecmp(g->url, "about:") == 0) { + about_create(); + browser_window_open_location(g->data.browser.bw, + "file:///%3CWimp$ScrapDir%3E/WWW/NetSurf/About"); + } + else { + browser_window_open_location(g->data.browser.bw, g->url); + } return; } else if (key->c == wimp_KEY_F8) |