From 87b78a89fb6f5ad959e16fd1ae976c0b625ee97e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 19 Feb 2014 13:10:09 +0000 Subject: [PATCH] Menu::attachToWindow is available on Linux. --- browser/api/atom_api_menu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/api/atom_api_menu.cc b/browser/api/atom_api_menu.cc index cc3a514d5690..4067829166c8 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