click_to_open now is always true, and cannot be disabled
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17175 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b03deb09db
commit
f274fa345d
@ -37,7 +37,6 @@ MenuBar::build_menu()
|
||||
fontSizeMenu = new FontSizeMenu();
|
||||
|
||||
// create the menu items
|
||||
clickToOpenItem = new BMenuItem("Click To Open", new BMessage(CLICK_OPEN_MSG), 0, 0);
|
||||
alwaysShowTriggersItem = new BMenuItem("Always Show Triggers", new BMessage(ALLWAYS_TRIGGERS_MSG), 0, 0);
|
||||
separatorStyleItem = new BMenuItem("Separator Style", new BMessage(DEFAULT_MSG), 0, 0);
|
||||
ctlAsShortcutItem = new BitmapMenuItem("as Shortcut Key",
|
||||
@ -73,7 +72,6 @@ MenuBar::build_menu()
|
||||
AddItem(fontMenu, 0);
|
||||
AddItem(fontSizeMenu, 1);
|
||||
AddSeparatorItem();
|
||||
AddItem(clickToOpenItem);
|
||||
AddItem(alwaysShowTriggersItem);
|
||||
AddSeparatorItem();
|
||||
AddItem(colorSchemeItem);
|
||||
@ -94,9 +92,7 @@ MenuBar::set_menu()
|
||||
get_menu_info(&info);
|
||||
|
||||
alwaysShowTriggersItem->SetMarked(info.triggers_always_shown);
|
||||
clickToOpenItem->SetMarked(info.click_to_open);
|
||||
alwaysShowTriggersItem->SetEnabled(info.click_to_open);
|
||||
|
||||
|
||||
get_key_map(&keys, &chars);
|
||||
|
||||
altAsShortcut = (keys->left_command_key == 0x5d) && (keys->right_command_key == 0x5f);
|
||||
|
@ -28,7 +28,6 @@ private:
|
||||
//others
|
||||
FontMenu *fontMenu;
|
||||
FontSizeMenu *fontSizeMenu;
|
||||
BMenuItem *clickToOpenItem;
|
||||
BMenuItem *alwaysShowTriggersItem;
|
||||
BMenuItem *colorSchemeItem;
|
||||
BMenuItem *separatorStyleItem;
|
||||
|
@ -101,17 +101,6 @@ MenuWindow::MessageReceived(BMessage *msg)
|
||||
Update();
|
||||
break;
|
||||
|
||||
case CLICK_OPEN_MSG:
|
||||
revert = true;
|
||||
if (info.click_to_open != true)
|
||||
info.click_to_open = true;
|
||||
else
|
||||
info.click_to_open = false;
|
||||
set_menu_info(&info);
|
||||
menuBar->set_menu();
|
||||
Update();
|
||||
break;
|
||||
|
||||
case ALLWAYS_TRIGGERS_MSG:
|
||||
revert = true;
|
||||
if (info.triggers_always_shown != true)
|
||||
|
Loading…
Reference in New Issue
Block a user