Although the correct way to disable the global menu bar under Ubuntu is to
set UBUNTU_MENUPROXY to an empty string, many guides on the web advise setting
it to "0", so handle this special case in wxApp::GTKIsUsingGlobalMenu() too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73014
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// XDG_CURRENT_DESKTOP env var being set to "Unity".
wxString proxy;
s_isUsingGlobalMenu = wxGetEnv("UBUNTU_MENUPROXY", &proxy) &&
- !proxy.empty();
+ !proxy.empty() && proxy != "0";
}
return s_isUsingGlobalMenu == 1;