Fix Web+ for AboutBox API changes.
This commit is contained in:
@@ -93,38 +93,33 @@ BrowserApp::~BrowserApp()
|
|||||||
void
|
void
|
||||||
BrowserApp::AboutRequested()
|
BrowserApp::AboutRequested()
|
||||||
{
|
{
|
||||||
bool needsInit;
|
BAboutWindow window = new BAboutWindow(kApplicationName,
|
||||||
BAboutWindow window = BAboutWindow::GetWindow(kApplicationName,
|
kApplicationSignature);
|
||||||
kApplicationSignature, &needsInit);
|
|
||||||
|
|
||||||
if (needsInit) {
|
// create the about window
|
||||||
// create the about window
|
|
||||||
|
|
||||||
const char* authors[] = {
|
const char* authors[] = {
|
||||||
"Andrea Anzani",
|
"Andrea Anzani",
|
||||||
"Stephan Aßmus",
|
"Stephan Aßmus",
|
||||||
"Alexandre Deckner",
|
"Alexandre Deckner",
|
||||||
"Rene Gollent",
|
"Rene Gollent",
|
||||||
"Ryan Leavengood",
|
"Ryan Leavengood",
|
||||||
"Michael Lotz",
|
"Michael Lotz",
|
||||||
"Maxime Simon",
|
"Maxime Simon",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
BString aboutText("");
|
BString aboutText("");
|
||||||
aboutText << "HaikuWebKit " << WebKitInfo::HaikuWebKitVersion();
|
aboutText << "HaikuWebKit " << WebKitInfo::HaikuWebKitVersion();
|
||||||
aboutText << " (" << WebKitInfo::HaikuWebKitRevision() << ")";
|
aboutText << " (" << WebKitInfo::HaikuWebKitRevision() << ")";
|
||||||
aboutText << "\nWebKit " << WebKitInfo::WebKitVersion();
|
aboutText << "\nWebKit " << WebKitInfo::WebKitVersion();
|
||||||
aboutText << " (" << WebKitInfo::WebKitRevision() << ")";
|
aboutText << " (" << WebKitInfo::WebKitRevision() << ")";
|
||||||
|
|
||||||
window->AddCopyright(2007, "Haiku, Inc.");
|
window->AddCopyright(2007, "Haiku, Inc.");
|
||||||
window->AddAuthors(authors);
|
window->AddAuthors(authors);
|
||||||
window->AddExtraInfo(aboutText.String());
|
window->AddExtraInfo(aboutText.String());
|
||||||
}
|
|
||||||
|
|
||||||
if (window->IsHidden())
|
window->Show();
|
||||||
window->Show();
|
|
||||||
window->Activate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user