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