mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Menu::attachToWindow is available on Linux.
This commit is contained in:
@@ -340,7 +340,7 @@ void Menu::Initialize(v8::Handle<v8::Object> target) {
|
||||
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "popup", Popup);
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#if defined(OS_WIN) || defined(TOOLKIT_GTK)
|
||||
NODE_SET_PROTOTYPE_METHOD(t, "attachToWindow", AttachToWindow);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user