Bring AboutRequested() method back, not sure why I removed it.
This commit is contained in:
@@ -426,27 +426,7 @@ ProcessController::MessageReceived(BMessage *message)
|
||||
}
|
||||
|
||||
case B_ABOUT_REQUESTED:
|
||||
if (fAboutWindow == NULL) {
|
||||
const char* extraCopyrights[] = {
|
||||
"1997-2001 Georges-Edouard Berenger",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char* authors[] = {
|
||||
"Georges-Edouard Berenger",
|
||||
NULL
|
||||
};
|
||||
|
||||
fAboutWindow = new BAboutWindow(
|
||||
B_TRANSLATE_SYSTEM_NAME("ProcessController"), kSignature);
|
||||
fAboutWindow->AddCopyright(2007, "Haiku, Inc.", extraCopyrights);
|
||||
fAboutWindow->AddAuthors(authors);
|
||||
fAboutWindow->Show();
|
||||
} else if (fAboutWindow->IsHidden())
|
||||
fAboutWindow->Show();
|
||||
else
|
||||
fAboutWindow->Activate();
|
||||
|
||||
AboutRequested();
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -455,6 +435,32 @@ ProcessController::MessageReceived(BMessage *message)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ProcessController::AboutRequested()
|
||||
{
|
||||
if (fAboutWindow == NULL) {
|
||||
const char* extraCopyrights[] = {
|
||||
"1997-2001 Georges-Edouard Berenger",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char* authors[] = {
|
||||
"Georges-Edouard Berenger",
|
||||
NULL
|
||||
};
|
||||
|
||||
fAboutWindow = new BAboutWindow(
|
||||
B_TRANSLATE_SYSTEM_NAME("ProcessController"), kSignature);
|
||||
fAboutWindow->AddCopyright(2007, "Haiku, Inc.", extraCopyrights);
|
||||
fAboutWindow->AddAuthors(authors);
|
||||
fAboutWindow->Show();
|
||||
} else if (fAboutWindow->IsHidden())
|
||||
fAboutWindow->Show();
|
||||
else
|
||||
fAboutWindow->Activate();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ProcessController::DefaultColors()
|
||||
{
|
||||
|
||||
@@ -45,6 +45,7 @@ class ProcessController : public BView {
|
||||
static ProcessController* Instantiate(BMessage* data);
|
||||
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
||||
|
||||
void AboutRequested();
|
||||
void Update();
|
||||
void DefaultColors();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user