Bring AboutRequested() method back, not sure why I removed it.

This commit is contained in:
John Scipione
2012-11-13 01:18:37 -05:00
parent 730a45ee8f
commit be7c552a50
2 changed files with 28 additions and 21 deletions
@@ -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();