Some cleanups: made the bitmaps static, moved variables around. No functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32056 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2009-08-01 08:14:18 +00:00
parent 90d0584d89
commit dcc8ae9118
3 changed files with 41 additions and 33 deletions
+3 -2
View File
@@ -173,7 +173,7 @@ static property_info sPropList[] = {
};
const char *kEmptyMenuLabel = "<empty>";
const char *BPrivate::kEmptyMenuLabel = "<empty>";
struct BMenu::LayoutData {
@@ -2667,7 +2667,8 @@ BMenu::_UpdateWindowViewSize(bool updatePosition)
}
} else {
_CacheFontInfo();
window->ResizeTo(StringWidth(kEmptyMenuLabel) + fPad.left + fPad.right,
window->ResizeTo(StringWidth(BPrivate::kEmptyMenuLabel)
+ fPad.left + fPad.right,
fFontHeight + fPad.top + fPad.bottom);
}