style cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37328 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -67,9 +67,8 @@ ScreenSaverController::MessageReceived(BMessage *message)
|
|||||||
{
|
{
|
||||||
const char *signature;
|
const char *signature;
|
||||||
if (message->FindString("be:signature", &signature) == B_OK
|
if (message->FindString("be:signature", &signature) == B_OK
|
||||||
&& strcasecmp(signature, SCREEN_BLANKER_SIG) == 0) {
|
&& strcasecmp(signature, SCREEN_BLANKER_SIG) == 0)
|
||||||
fFilter->SetIsRunning(message->what == B_SOME_APP_LAUNCHED);
|
fFilter->SetIsRunning(message->what == B_SOME_APP_LAUNCHED);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,15 +190,13 @@ ScreenSaverFilter::_Invoke()
|
|||||||
// database for example...
|
// database for example...
|
||||||
BPath path;
|
BPath path;
|
||||||
if (find_directory(B_SYSTEM_BIN_DIRECTORY, &path) != B_OK
|
if (find_directory(B_SYSTEM_BIN_DIRECTORY, &path) != B_OK
|
||||||
|| path.Append("screen_blanker") != B_OK) {
|
|| path.Append("screen_blanker") != B_OK)
|
||||||
path.SetTo("/boot/system/bin/screen_blanker");
|
path.SetTo("/boot/system/bin/screen_blanker");
|
||||||
}
|
|
||||||
BEntry entry(path.Path());
|
BEntry entry(path.Path());
|
||||||
entry_ref ref;
|
entry_ref ref;
|
||||||
if (entry.GetRef(&ref) == B_OK
|
if (entry.GetRef(&ref) == B_OK
|
||||||
&& be_roster->Launch(&ref) == B_OK) {
|
&& be_roster->Launch(&ref) == B_OK)
|
||||||
fIsRunning = true;
|
fIsRunning = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -237,9 +234,8 @@ ScreenSaverFilter::ReloadSettings()
|
|||||||
BMessage check(kMsgCheckTime);
|
BMessage check(kMsgCheckTime);
|
||||||
fRunner = new (std::nothrow) BMessageRunner(fController, &check,
|
fRunner = new (std::nothrow) BMessageRunner(fController, &check,
|
||||||
fSnoozeTime);
|
fSnoozeTime);
|
||||||
if (fRunner == NULL || fRunner->InitCheck() != B_OK) {
|
if (fRunner == NULL || fRunner->InitCheck() != B_OK)
|
||||||
syslog(LOG_ERR, "screen saver filter runner init failed\n");
|
syslog(LOG_ERR, "screen saver filter runner init failed\n");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user