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