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)
|
if (fPreferencesWindow != NULL)
|
||||||
fPreferencesWindow->PostMessage(kUpdatePreferences);
|
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);
|
: B_NORMAL_WINDOW_FEEL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ const char* const kReplicantPathField = "replicant_path";
|
|||||||
float gMinimumWindowWidth = kGutter + kMinimumTrayWidth + kDragRegionWidth;
|
float gMinimumWindowWidth = kGutter + kMinimumTrayWidth + kDragRegionWidth;
|
||||||
float gMaximumWindowWidth = gMinimumWindowWidth * 2;
|
float gMaximumWindowWidth = gMinimumWindowWidth * 2;
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
DumpItem(DeskbarItemInfo* item)
|
DumpItem(DeskbarItemInfo* item)
|
||||||
{
|
{
|
||||||
@@ -271,7 +272,6 @@ TReplicantTray::MessageReceived(BMessage* message)
|
|||||||
{
|
{
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case B_LOCALE_CHANGED:
|
case B_LOCALE_CHANGED:
|
||||||
{
|
|
||||||
if (fTime == NULL)
|
if (fTime == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -281,7 +281,6 @@ TReplicantTray::MessageReceived(BMessage* message)
|
|||||||
RealignReplicants();
|
RealignReplicants();
|
||||||
AdjustPlacement();
|
AdjustPlacement();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
case kShowHideTime:
|
case kShowHideTime:
|
||||||
// from context menu in clock and in this view
|
// from context menu in clock and in this view
|
||||||
|
|||||||
Reference in New Issue
Block a user