summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorAndrew Timmins <atimmins@blueyonder.co.uk>2004-07-26 20:13:45 +0000
committerAndrew Timmins <atimmins@blueyonder.co.uk>2004-07-26 20:13:45 +0000
commitb59616c9ab85b0f58c0318f62e39f197932a712b (patch)
tree72e5c3ffa27800e21be5f1a7d74e97a006fc7bd6 /riscos/gui.c
parent8e7d298c65440ab93e8061a934c76076b934eddd (diff)
downloadnetsurf-b59616c9ab85b0f58c0318f62e39f197932a712b.tar.gz
netsurf-b59616c9ab85b0f58c0318f62e39f197932a712b.tar.bz2
[project @ 2004-07-26 20:13:45 by atimmins]
Updated to support new config options (homepage, open on startup). Bug fixes with new config pane window (sticky selected radio icon bug!). Also includes up-to-date French templates. svn path=/import/netsurf/; revision=1150
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 90e73096a..3ee556698 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -807,10 +807,18 @@ void ro_gui_icon_bar_click(wimp_pointer *pointer)
char url[80];
int length;
- if ((length = snprintf(url, sizeof(url),
+ /* Open the homepage based on our the user options. */
+ if (!(option_homepage_url == NULL)){
+ browser_window_create(option_homepage_url, NULL);
+ }
+ else {
+ if ((length = snprintf(url, sizeof(url),
"file:/<NetSurf$Dir>/Docs/intro_%s",
option_language)) >= 0 && length < (int)sizeof(url))
- browser_window_create(url, NULL);
+ browser_window_create(url, NULL);
+ }
+
+
} else if (pointer->buttons == wimp_CLICK_ADJUST) {
/* I've no idea what the correct way to scan for keys is when in the
desktop, so I've used os_byte to scan directly. This may cause some
@@ -995,7 +1003,7 @@ void ro_msg_dataload(wimp_message *message)
url = ro_gui_url_file_parse(message->data.data_xfer.file_name);
else if (file_type == 0xfaf ||
file_type == 0xf78 ||
- file_type == 0xf83 ||
+ file_type == 0xf83 ||
file_type == 0x695 ||
file_type == 0xaff ||
file_type == 0xb60 ||