Partially reverted to 15464 to have less code duplication, now that the special case is handled in BMenu::CalcFrame()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15944 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
80d2048e81
commit
5364573ebd
@ -66,15 +66,7 @@ _BMCItem_::Draw()
|
||||
{
|
||||
BMenu *menu = Menu();
|
||||
|
||||
// Copy / pasted from BMenuItem::Draw(). We can't use it directly
|
||||
// because we want to skip the Submenu symbol and the rest
|
||||
if (IsEnabled())
|
||||
menu->SetHighColor(ui_color(B_MENU_ITEM_TEXT_COLOR));
|
||||
else
|
||||
menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR),
|
||||
B_DISABLED_LABEL_TINT));
|
||||
menu->MovePenTo(ContentLocation());
|
||||
DrawContent();
|
||||
BMenuItem::Draw();
|
||||
|
||||
if (!fShowPopUpMarker)
|
||||
return;
|
||||
@ -133,7 +125,7 @@ _BMCFilter_::operator=(const _BMCFilter_ &)
|
||||
|
||||
|
||||
_BMCMenuBar_::_BMCMenuBar_(BRect frame, bool fixed_size, BMenuField *menuField)
|
||||
: BMenuBar(frame, "_mc_mb_", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_ITEMS_IN_COLUMN,
|
||||
: BMenuBar(frame, "_mc_mb_", B_FOLLOW_LEFT | B_FOLLOW_TOP, B_ITEMS_IN_ROW,
|
||||
!fixed_size)
|
||||
{
|
||||
SetFlags(Flags() | B_FRAME_EVENTS);
|
||||
|
Loading…
Reference in New Issue
Block a user