From 86f60c4c0a6c4577536c797760fa12f097fd31c9 Mon Sep 17 00:00:00 2001 From: Andrew Timmins Date: Sun, 18 Jul 2004 22:21:32 +0000 Subject: [project @ 2004-07-18 22:21:32 by atimmins] svn path=/import/netsurf/; revision=1097 --- riscos/gui.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'riscos/gui.c') diff --git a/riscos/gui.c b/riscos/gui.c index 8cde110ee..20d360283 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -6,6 +6,7 @@ * Copyright 2004 James Bursa * Copyright 2003 John M Bell * Copyright 2004 Richard Wilson + * Copyright 2004 Andrew Timmins */ #include @@ -159,6 +160,7 @@ void gui_init(int argc, char** argv) { char path[40]; char theme_fname[256]; + char url[80]; os_error *error; int length; @@ -166,8 +168,12 @@ void gui_init(int argc, char** argv) save_complete_init(); + /* We dont have the universal boot sequence on NCOS */ +#ifndef ncos options_read("Choices:WWW.NetSurf.Choices"); - +#else + options_read(".Choices.NetSurf.Choices"); +#endif ro_gui_choose_language(); NETSURF_DIR = getenv("NetSurf$Dir"); @@ -178,17 +184,27 @@ void gui_init(int argc, char** argv) messages_load(path); messages_load(".Resources.LangNames"); + /* Totally pedantic But base the taskname on the buid options! + */ +#ifndef ncos error = xwimp_initialise(wimp_VERSION_RO38, "NetSurf", (const wimp_message_list *) &task_messages, 0, &task_handle); +#else + error = xwimp_initialise(wimp_VERSION_RO38, "NCNetSurf", + (const wimp_message_list *) &task_messages, 0, + &task_handle); +#endif if (error) { LOG(("xwimp_initialise failed: 0x%x: %s", error->errnum, error->errmess)); die(error->errmess); } + /* We dont need to check the fonts on NCOS */ +#ifndef ncos ro_gui_check_fonts(); - +#endif /* Issue a *Desktop to poke AcornURI into life */ if (getenv("NetSurf$Start_URI_Handler")) xwimp_start_task("Desktop", 0); @@ -227,11 +243,14 @@ void gui_init(int argc, char** argv) wimp_close_template(); ro_gui_pointers_init(); ro_gui_hotlist_init(); + + /* We dont create an Iconbar icon on NCOS */ +#ifndef ncos ro_gui_icon_bar_create(); +#endif ro_gui_check_resolvers(); } - /** * Determine the language to use. * -- cgit v1.2.3