summaryrefslogtreecommitdiff
path: root/beos
diff options
context:
space:
mode:
authorAdrien Destugues <pulkomandy@pulkomandy.tk>2015-08-17 22:23:34 +0200
committerVincent Sanders <vince@kyllikki.org>2015-10-12 21:11:21 +0100
commitaf66ed31944cdb74e2ad4a75a4fffe97535260ed (patch)
tree78f88612a915384c0e191383a0e67429161291e4 /beos
parent15777ee7503db5a8499ff7c8423415ef1d13a1a5 (diff)
downloadnetsurf-af66ed31944cdb74e2ad4a75a4fffe97535260ed.tar.gz
netsurf-af66ed31944cdb74e2ad4a75a4fffe97535260ed.tar.bz2
BeOS/Haiku: use Haiku native dialog box.
* Looks better than a standard alert.
Diffstat (limited to 'beos')
-rw-r--r--beos/about.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/beos/about.cpp b/beos/about.cpp
index 7db71453d..89eb81829 100644
--- a/beos/about.cpp
+++ b/beos/about.cpp
@@ -32,7 +32,7 @@ extern "C" {
#include "beos/scaffolding.h"
#include "beos/window.h"
-#include <Alert.h>
+#include <private/interface/AboutWindow.h>
#include <Application.h>
#include <Invoker.h>
#include <String.h>
@@ -50,30 +50,8 @@ void nsbeos_about(struct gui_window *gui)
text << "Date : " << WT_COMPILEDATE << "\n";
text << "cURL : " << LIBCURL_VERSION << "\n";
- BAlert *alert = new BAlert("about", text.String(), "Credits", "Licence", "Ok");
-
- BHandler *target = be_app;
- BMessage *message = new BMessage(ABOUT_BUTTON);
- BInvoker *invoker = NULL;
- if (gui) {
- nsbeos_scaffolding *s = nsbeos_get_scaffold(gui);
- if (s) {
- NSBrowserWindow *w = nsbeos_get_bwindow_for_scaffolding(s);
- if (w) {
- alert->SetFeel(B_MODAL_SUBSET_WINDOW_FEEL);
- alert->AddToSubset(w);
- }
- NSBaseView *v = nsbeos_get_baseview_for_scaffolding(s);
- if (v) {
- if (w)
- message->AddPointer("Window", w);
- target = v;
- }
- }
- }
- invoker = new BInvoker(message, target);
-
+ BAboutWindow *alert = new BAboutWindow("About NetSurf", "application/x-vnd.NetSurf");
+ alert->AddExtraInfo(text);
+ alert->Show();
//TODO: i18n-ize
-
- alert->Go(invoker);
}