[Mac] Move the FixMenuTitles hack to MenuController.

This commit is contained in:
Cheng Zhao 2013-08-14 22:33:18 +08:00
parent 22012d41d8
commit f908619630
3 changed files with 5 additions and 22 deletions

View file

@ -26,11 +26,6 @@ class MenuMac : public Menu {
private:
friend class Menu;
// The MenuController doesn't set title for menus, however it's required by
// application menu to show submenus correctly, fix it by iterating all
// submenus and set their titles.
static void FixMenuTitles(NSMenu* menu);
// Fake sending an action from the application menu.
static void SendActionToFirstResponder(const std::string& action);