diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2008-10-16 16:01:44 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2008-10-16 16:01:44 +0000 |
commit | ce07ebcea8d4c0460b58de7b59bb94734b650cbe (patch) | |
tree | 6c897f60eb9d561bdc1881e6f137fbf297911e03 /beos/beos_gui.cpp | |
parent | b3a5250f994bd772b14dad3472384b8534e0ad4f (diff) | |
download | netsurf-ce07ebcea8d4c0460b58de7b59bb94734b650cbe.tar.gz netsurf-ce07ebcea8d4c0460b58de7b59bb94734b650cbe.tar.bz2 |
- handle NetPositive what codes; this makes it easy to use NetSurf instead by just changing the archived message used to instantiate it.
- fix background view color, some host apps hide the BDragger, making it visible.
- handle mailto: urls as a special case, we historically use the prefered app for text/x-email.
svn path=/trunk/netsurf/; revision=5584
Diffstat (limited to 'beos/beos_gui.cpp')
-rw-r--r-- | beos/beos_gui.cpp | 14 |
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 |