From: Cheng Zhao Date: Wed, 19 Feb 2014 13:10:09 +0000 (+0000) Subject: Menu::attachToWindow is available on Linux. X-Git-Tag: v0.10.0~6^2~15 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=87b78a89fb6f5ad959e16fd1ae976c0b625ee97e;p=electron.git Menu::attachToWindow is available on Linux. --- diff --git a/browser/api/atom_api_menu.cc b/browser/api/atom_api_menu.cc index cc3a514d..40678291 100644 --- a/browser/api/atom_api_menu.cc +++ b/browser/api/atom_api_menu.cc @@ -340,7 +340,7 @@ void Menu::Initialize(v8::Handle 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