From 0dad8074499c8a2784505f826505bd8862d618a1 Mon Sep 17 00:00:00 2001 From: "rsesek@chromium.org" Date: Thu, 15 Jul 2010 15:44:20 +0000 Subject: [Mac] Put buttons into the new unified Wrench menu. This also makes changes to MenuController to support NIB-based initialization. Screen shots: http://cl.ly/1cyU (en) and http://cl.ly/1cyE (ru). BUG=47848 TEST=Click on Wrench menu and see buttons. Buttons perform their function. Review URL: http://codereview.chromium.org/2923009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52485 0039d316-1c4b-4281-b951-d872f2087c98 --- app/menus/simple_menu_model.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/menus/simple_menu_model.cc b/app/menus/simple_menu_model.cc index 3e51986..291aa5a 100644 --- a/app/menus/simple_menu_model.cc +++ b/app/menus/simple_menu_model.cc @@ -57,7 +57,8 @@ void SimpleMenuModel::AddRadioItemWithStringId(int command_id, int string_id, void SimpleMenuModel::AddButtonItem(int command_id, ButtonMenuItemModel* model) { - Item item = { 0, string16(), SkBitmap(), TYPE_BUTTON_ITEM, -1, NULL, model }; + Item item = { command_id, string16(), SkBitmap(), TYPE_BUTTON_ITEM, -1, NULL, + model }; AppendItem(item); } -- cgit v1.1