win: Force menuWillShow to be called when setting window menu.

This commit is contained in:
Cheng Zhao 2014-05-26 09:38:04 +08:00
parent 0e5f697b48
commit 6ee437e9bf
2 changed files with 11 additions and 7 deletions

View file

@ -230,7 +230,7 @@ void Menu::BuildPrototype(v8::Isolate* isolate,
.SetMethod("isEnabledAt", &Menu::IsEnabledAt)
.SetMethod("isVisibleAt", &Menu::IsVisibleAt)
#if defined(OS_WIN) || defined(TOOLKIT_GTK)
.SetMethod("attachToWindow", &Menu::AttachToWindow)
.SetMethod("_attachToWindow", &Menu::AttachToWindow)
#endif
.SetMethod("_popup", &Menu::Popup);
}