Rewrote PopUpMenu.h and MenuBar.h. Adjusted source files accordingly.
Added license to SeparatorItem.h git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22759 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2162,7 +2162,7 @@ BMenu::_SetStickyMode(bool on)
|
||||
if (on && menuBar != NULL && menuBar->LockLooper()) {
|
||||
// Steal the focus from the current focus view
|
||||
// (needed to handle keyboard navigation)
|
||||
menuBar->StealFocus();
|
||||
menuBar->_StealFocus();
|
||||
menuBar->UnlockLooper();
|
||||
}
|
||||
|
||||
@@ -2332,7 +2332,7 @@ BMenu::QuitTracking()
|
||||
{
|
||||
_SelectItem(NULL);
|
||||
if (BMenuBar *menuBar = dynamic_cast<BMenuBar *>(this))
|
||||
menuBar->RestoreFocus();
|
||||
menuBar->_RestoreFocus();
|
||||
|
||||
fChosenItem = NULL;
|
||||
fState = MENU_STATE_CLOSED;
|
||||
|
||||
Reference in New Issue
Block a user