A fix to bug #1154 by Justin O'Dell. Basically the settings for menus

default to having no accelerators, but that setting was not ever read
properly. So in fact the meny pref was correct, but the menus were wrong.
This fixes that.

If the default setting is supposed to be accelerators on then the settings
should be changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22011 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2007-08-19 19:55:26 +00:00
parent c18df4b601
commit d237672a06

View File

@ -1204,6 +1204,8 @@ BMenu::InitData(BMessage *data)
SetLowColor(sMenuInfo.background_color);
SetViewColor(sMenuInfo.background_color);
fTriggerEnabled = sMenuInfo.triggers_always_shown;
if (data != NULL) {
data->FindInt32("_layout", (int32 *)&fLayout);
data->FindBool("_rsize_to_fit", &fResizeToFit);