summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-05-13 14:39:43 +0000
committerJames Bursa <james@netsurf-browser.org>2004-05-13 14:39:43 +0000
commit837d60cc37b0634f2ff5b7835594d3c02b0f42b5 (patch)
tree70c154d7755c672b63ec74aee14e8eca4f4654cc /riscos/gui.c
parent59d25c3a0269fbde77b75044c006d5d8735420c1 (diff)
downloadnetsurf-837d60cc37b0634f2ff5b7835594d3c02b0f42b5.tar.gz
netsurf-837d60cc37b0634f2ff5b7835594d3c02b0f42b5.tar.bz2
[project @ 2004-05-13 14:39:43 by bursa]
Fix URL protocol termination bug (reported by Fred Bambrough). Change from xcalloc to malloc and add error handling. svn path=/import/netsurf/; revision=859
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 5aa32cf2a..6570a5f59 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -587,15 +587,6 @@ void ro_gui_null_reason_code(void)
}
}
-void gui_launch_url(char *url) {
- /* Try ant broadcast first */
- if (!ro_url_broadcast(url))
- /* then uri */
- if (!ro_uri_launch(url))
- /* then ant load */
- ro_url_load(url);
-}
-
/**
* Handle Redraw_Window_Request events.
@@ -782,7 +773,7 @@ void ro_gui_user_message(wimp_event_no event, wimp_message *message)
case message_HELP_REQUEST:
ro_gui_interactive_help_request(message);
break;
-
+
case message_DATA_SAVE:
ro_msg_datasave(message);
break;
@@ -1295,6 +1286,17 @@ void ro_gui_view_source(struct content *content)
}
+/**
+ * Broadcast an URL that we can't handle.
+ */
+
+void gui_launch_url(const char *url)
+{
+ /* Try ant broadcast first */
+ ro_url_broadcast(url);
+}
+
+
static char warn_buffer[300];
/**