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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user