Make BAboutWindow movable again.
Also fix build, forgot some files in previous commit.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -620,25 +620,20 @@ PowerStatusReplicant::MouseDown(BPoint point)
|
||||
void
|
||||
PowerStatusReplicant::_AboutRequested()
|
||||
{
|
||||
bool needsInit;
|
||||
BAboutWindow* window = BAboutWindow::GetWindow(
|
||||
B_TRANSLATE_SYSTEM_NAME("PowerStatus"), kSignature, &needsInit);
|
||||
BAboutWindow* window = new BAboutWindow(
|
||||
B_TRANSLATE_SYSTEM_NAME("PowerStatus"), kSignature);
|
||||
|
||||
if (needsInit) {
|
||||
const char* authors[] = {
|
||||
"Axel Dörfler",
|
||||
"Alexander von Gluck",
|
||||
"Clemens Zeidler",
|
||||
NULL
|
||||
};
|
||||
const char* authors[] = {
|
||||
"Axel Dörfler",
|
||||
"Alexander von Gluck",
|
||||
"Clemens Zeidler",
|
||||
NULL
|
||||
};
|
||||
|
||||
window->AddCopyright(2006, "Haiku, Inc.");
|
||||
window->AddAuthors(authors);
|
||||
}
|
||||
window->AddCopyright(2006, "Haiku, Inc.");
|
||||
window->AddAuthors(authors);
|
||||
|
||||
if (window->IsHidden())
|
||||
window->Show();
|
||||
window->Activate();
|
||||
window->Show();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -360,8 +360,8 @@ AboutView::SetIcon(BBitmap* icon)
|
||||
|
||||
BAboutWindow::BAboutWindow(const char* appName, const char* signature)
|
||||
: BWindow(BRect(0.0, 0.0, 200.0, 200.0), appName, B_MODAL_WINDOW,
|
||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_MOVABLE | B_NOT_ZOOMABLE
|
||||
| B_NOT_RESIZABLE | B_AUTO_UPDATE_SIZE_LIMITS | B_CLOSE_ON_ESCAPE)
|
||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_NOT_RESIZABLE
|
||||
| B_AUTO_UPDATE_SIZE_LIMITS | B_CLOSE_ON_ESCAPE)
|
||||
{
|
||||
SetLayout(new BGroupLayout(B_VERTICAL));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user