summaryrefslogtreecommitdiff
path: root/beos/beos_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'beos/beos_gui.cpp')
-rw-r--r--beos/beos_gui.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp
index a0ff9ce81..2e8d2ca0f 100644
--- a/beos/beos_gui.cpp
+++ b/beos/beos_gui.cpp
@@ -162,6 +162,15 @@ NSBrowserApplication::MessageReceived(BMessage *message)
case 'urlc':
case 'urle':
case 'menu':
+ // NetPositive messages
+ case B_NETPOSITIVE_OPEN_URL:
+ case B_NETPOSITIVE_BACK:
+ case B_NETPOSITIVE_FORWARD:
+ case B_NETPOSITIVE_HOME:
+ case B_NETPOSITIVE_RELOAD:
+ case B_NETPOSITIVE_STOP:
+ case B_NETPOSITIVE_DOWN:
+ case B_NETPOSITIVE_UP:
//DetachCurrentMessage();
//nsbeos_pipe_message(message, this, fGuiWindow);
break;
@@ -943,6 +952,11 @@ void gui_launch_url(const char *url)
BString arg(url);
mimeType.Append(arg, arg.FindFirst(":"));
+ // special case, text/x-email is used traditionally
+ // use it instead
+ if (arg.IFindFirst("mailto:") == 0)
+ mimeType = "text/x-email";
+
// the protocol should be alphanum
// we just check if it's registered
// if not there is likely no supporting app anyway