Menu::attachToWindow is available on Linux.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 19 Feb 2014 13:10:09 +0000 (13:10 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 19 Feb 2014 13:10:09 +0000 (13:10 +0000)
browser/api/atom_api_menu.cc

index cc3a514..4067829 100644 (file)
@@ -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