From df3b8173eeba89f030329c79eb3d86db506fe30c Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 1 May 2013 15:09:30 +0200 Subject: [PATCH] Fix Web+ for AboutBox API changes. --- src/apps/webpositive/BrowserApp.cpp | 49 +++++++++++++---------------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/src/apps/webpositive/BrowserApp.cpp b/src/apps/webpositive/BrowserApp.cpp index cc1b35b0fa..a45e6e571b 100644 --- a/src/apps/webpositive/BrowserApp.cpp +++ b/src/apps/webpositive/BrowserApp.cpp @@ -93,38 +93,33 @@ BrowserApp::~BrowserApp() void BrowserApp::AboutRequested() { - bool needsInit; - BAboutWindow window = BAboutWindow::GetWindow(kApplicationName, - kApplicationSignature, &needsInit); + BAboutWindow window = new BAboutWindow(kApplicationName, + kApplicationSignature); - if (needsInit) { - // create the about window + // create the about window - const char* authors[] = { - "Andrea Anzani", - "Stephan Aßmus", - "Alexandre Deckner", - "Rene Gollent", - "Ryan Leavengood", - "Michael Lotz", - "Maxime Simon", - NULL - }; + const char* authors[] = { + "Andrea Anzani", + "Stephan Aßmus", + "Alexandre Deckner", + "Rene Gollent", + "Ryan Leavengood", + "Michael Lotz", + "Maxime Simon", + NULL + }; - BString aboutText(""); - aboutText << "HaikuWebKit " << WebKitInfo::HaikuWebKitVersion(); - aboutText << " (" << WebKitInfo::HaikuWebKitRevision() << ")"; - aboutText << "\nWebKit " << WebKitInfo::WebKitVersion(); - aboutText << " (" << WebKitInfo::WebKitRevision() << ")"; + BString aboutText(""); + aboutText << "HaikuWebKit " << WebKitInfo::HaikuWebKitVersion(); + aboutText << " (" << WebKitInfo::HaikuWebKitRevision() << ")"; + aboutText << "\nWebKit " << WebKitInfo::WebKitVersion(); + aboutText << " (" << WebKitInfo::WebKitRevision() << ")"; - window->AddCopyright(2007, "Haiku, Inc."); - window->AddAuthors(authors); - window->AddExtraInfo(aboutText.String()); - } + window->AddCopyright(2007, "Haiku, Inc."); + window->AddAuthors(authors); + window->AddExtraInfo(aboutText.String()); - if (window->IsHidden()) - window->Show(); - window->Activate(); + window->Show(); }