Deskbar and PowerStatus: style updates

80 char limit in BarApp.cpp
2 newlines and remove unnecessary curly braces in StatusView.cpp

Replicant: tiny whitespace style fix and remove trailing tab chars
This commit is contained in:
John Scipione
2017-11-05 19:41:55 -08:00
parent 70ad528943
commit c3c3360f40
3 changed files with 4 additions and 4 deletions
+2 -1
View File
@@ -475,7 +475,8 @@ TBarApp::MessageReceived(BMessage* message)
if (fPreferencesWindow != NULL)
fPreferencesWindow->PostMessage(kUpdatePreferences);
fBarWindow->SetFeel(fSettings.alwaysOnTop ? B_FLOATING_ALL_WINDOW_FEEL
fBarWindow->SetFeel(fSettings.alwaysOnTop
? B_FLOATING_ALL_WINDOW_FEEL
: B_NORMAL_WINDOW_FEEL);
break;
+1 -2
View File
@@ -90,6 +90,7 @@ const char* const kReplicantPathField = "replicant_path";
float gMinimumWindowWidth = kGutter + kMinimumTrayWidth + kDragRegionWidth;
float gMaximumWindowWidth = gMinimumWindowWidth * 2;
static void
DumpItem(DeskbarItemInfo* item)
{
@@ -271,7 +272,6 @@ TReplicantTray::MessageReceived(BMessage* message)
{
switch (message->what) {
case B_LOCALE_CHANGED:
{
if (fTime == NULL)
return;
@@ -281,7 +281,6 @@ TReplicantTray::MessageReceived(BMessage* message)
RealignReplicants();
AdjustPlacement();
break;
}
case kShowHideTime:
// from context menu in clock and in this view
+1 -1
View File
@@ -84,7 +84,7 @@ PowerStatus::ReadyToRun()
isInstalled = deskbar.HasItem(kDeskbarItemName);
}
if (isDeskbarRunning && !isInstalled) {
if (isDeskbarRunning && !isInstalled) {
BAlert* alert = new BAlert("",
B_TRANSLATE("You can run PowerStatus in a window "
"or install it in the Deskbar."), B_TRANSLATE("Run in window"),