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:
Stefano Ceccherini
2007-10-29 10:40:16 +00:00
parent 6ae06ef86a
commit 795a2888e7
5 changed files with 145 additions and 175 deletions
+2 -2
View File
@@ -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;