Starting to apply style cleanup patches by John Scipione from bug 7052.

This will force me to practice our code style.
(As a sidenote, we are aware of the no of patches in the bug). 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40744 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Holmqvist
2011-02-28 21:27:29 +00:00
parent c38ff3e36c
commit 57a096382a
3 changed files with 30 additions and 28 deletions
+9 -9
View File
@@ -26,9 +26,10 @@ Except as contained in this notice, the name of Be Incorporated shall not be
used in advertising or otherwise to promote the sale, use or other dealings in used in advertising or otherwise to promote the sale, use or other dealings in
this Software without prior written authorization from Be Incorporated. this Software without prior written authorization from Be Incorporated.
Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered
of Be Incorporated in the United States and other countries. Other brand product trademarks of Be Incorporated in the United States and other countries. Other
names are registered trademarks or trademarks of their respective holders. brand product names are registered trademarks or trademarks of their respective
holders.
All rights reserved. All rights reserved.
*/ */
@@ -613,8 +614,8 @@ TExpandoMenuBar::CheckItemSizes(int32 delta)
if (!fBarView->Vertical()) { if (!fBarView->Vertical()) {
// in this case there are 2 extra items: // in this case there are 2 extra items:
// The Be Menu // - The Be Menu
// The little separator item // - The little separator item
fullWidth = fullWidth - (sMinimumWindowWidth * 2) fullWidth = fullWidth - (sMinimumWindowWidth * 2)
+ (fBeMenuWidth + kSepItemWidth); + (fBeMenuWidth + kSepItemWidth);
width -= (fBeMenuWidth + kSepItemWidth); width -= (fBeMenuWidth + kSepItemWidth);
@@ -713,10 +714,9 @@ void
TExpandoMenuBar::CheckForSizeOverrun() TExpandoMenuBar::CheckForSizeOverrun()
{ {
BRect screenFrame = (BScreen(Window())).Frame(); BRect screenFrame = (BScreen(Window())).Frame();
if (fVertical)
fIsScrolling = Window()->Frame().bottom > screenFrame.bottom; fIsScrolling = fVertical ? Window()->Frame().bottom > screenFrame.bottom
else : false;
fIsScrolling = false;
} }
+4 -3
View File
@@ -26,9 +26,10 @@ Except as contained in this notice, the name of Be Incorporated shall not be
used in advertising or otherwise to promote the sale, use or other dealings in used in advertising or otherwise to promote the sale, use or other dealings in
this Software without prior written authorization from Be Incorporated. this Software without prior written authorization from Be Incorporated.
Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered
of Be Incorporated in the United States and other countries. Other brand product trademarks of Be Incorporated in the United States and other countries. Other
names are registered trademarks or trademarks of their respective holders. brand product names are registered trademarks or trademarks of their respective
holders.
All rights reserved. All rights reserved.
*/ */
#ifndef EXPANDO_MENU_BAR_H #ifndef EXPANDO_MENU_BAR_H
+4 -3
View File
@@ -25,7 +25,8 @@ Except as contained in this notice, the name of Be Incorporated shall not be
used in advertising or otherwise to promote the sale, use or other dealings in used in advertising or otherwise to promote the sale, use or other dealings in
this Software without prior written authorization from Be Incorporated. this Software without prior written authorization from Be Incorporated.
Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered
of Be Incorporated in the United States and other countries. Other brand product trademarks of Be Incorporated in the United States and other countries. Other
names are registered trademarks or trademarks of their respective holders. brand product names are registered trademarks or trademarks of their respective
holders.
All rights reserved. All rights reserved.