Make BAboutWindow movable again.

Also fix build, forgot some files in previous commit.
This commit is contained in:
Adrien Destugues
2013-05-01 13:07:29 +02:00
parent 31535ac63b
commit df2257de36
3 changed files with 22 additions and 32 deletions
+9 -14
View File
@@ -1107,22 +1107,17 @@ ActivityView::MessageReceived(BMessage* message)
switch (message->what) {
case B_ABOUT_REQUESTED:
{
bool needsInit;
BAboutWindow* window = BAboutWindow::GetWindow(kAppName, kSignature,
&needsInit);
if (needsInit) {
const char* authors[] = {
"Axel Dörfler",
NULL
};
BAboutWindow* window = new BAboutWindow(kAppName, kSignature);
window->AddCopyright(2008, "Haiku, Inc.");
window->AddAuthors(authors);
}
const char* authors[] = {
"Axel Dörfler",
NULL
};
if (window->IsHidden())
window->Show();
window->Activate();
window->AddCopyright(2008, "Haiku, Inc.");
window->AddAuthors(authors);
window->Show();
break;
}