* Don't clutter the context menu with a mostly never
used About... menu item. * Setup the About menu item in the file menu such that it sends its message to the be_app, we no longer have to forward it then. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38522 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
13ff011b85
commit
36f28785c6
@ -711,9 +711,6 @@ MainWin::MessageReceived(BMessage* msg)
|
|||||||
case M_FILE_PLAYLIST:
|
case M_FILE_PLAYLIST:
|
||||||
ShowPlaylistWindow();
|
ShowPlaylistWindow();
|
||||||
break;
|
break;
|
||||||
case B_ABOUT_REQUESTED:
|
|
||||||
be_app->PostMessage(msg);
|
|
||||||
break;
|
|
||||||
case M_FILE_CLOSE:
|
case M_FILE_CLOSE:
|
||||||
PostMessage(B_QUIT_REQUESTED);
|
PostMessage(B_QUIT_REQUESTED);
|
||||||
break;
|
break;
|
||||||
@ -1344,8 +1341,10 @@ MainWin::_CreateMenu()
|
|||||||
fPlaylistMenu->Superitem()->SetMessage(new BMessage(M_FILE_PLAYLIST));
|
fPlaylistMenu->Superitem()->SetMessage(new BMessage(M_FILE_PLAYLIST));
|
||||||
|
|
||||||
fFileMenu->AddSeparatorItem();
|
fFileMenu->AddSeparatorItem();
|
||||||
fFileMenu->AddItem(new BMenuItem("About " NAME B_UTF8_ELLIPSIS,
|
item = new BMenuItem("About " NAME B_UTF8_ELLIPSIS,
|
||||||
new BMessage(B_ABOUT_REQUESTED)));
|
new BMessage(B_ABOUT_REQUESTED));
|
||||||
|
fFileMenu->AddItem(item);
|
||||||
|
item->SetTarget(be_app);
|
||||||
fFileMenu->AddSeparatorItem();
|
fFileMenu->AddSeparatorItem();
|
||||||
fFileMenu->AddItem(new BMenuItem("Close", new BMessage(M_FILE_CLOSE), 'W'));
|
fFileMenu->AddItem(new BMenuItem("Close", new BMessage(M_FILE_CLOSE), 'W'));
|
||||||
fFileMenu->AddItem(new BMenuItem("Quit", new BMessage(M_FILE_QUIT), 'Q'));
|
fFileMenu->AddItem(new BMenuItem("Quit", new BMessage(M_FILE_QUIT), 'Q'));
|
||||||
@ -1839,8 +1838,6 @@ MainWin::_ShowContextMenu(const BPoint& screenPoint)
|
|||||||
|
|
||||||
menu->AddSeparatorItem();
|
menu->AddSeparatorItem();
|
||||||
|
|
||||||
menu->AddItem(new BMenuItem("About " NAME B_UTF8_ELLIPSIS,
|
|
||||||
new BMessage(B_ABOUT_REQUESTED)));
|
|
||||||
menu->AddSeparatorItem();
|
menu->AddSeparatorItem();
|
||||||
menu->AddItem(new BMenuItem("Quit", new BMessage(M_FILE_QUIT), 'Q'));
|
menu->AddItem(new BMenuItem("Quit", new BMessage(M_FILE_QUIT), 'Q'));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user