Disable Ubuntu's global menu bar for Aegisub

wxWidgets currently doesn't generate menu open or update events for the
Ubuntu menubar (since GTK doesn't send the relevant signals to the
application), which we rely on.

Updates #1531.
This commit is contained in:
Thomas Goyne 2012-10-25 09:54:59 -07:00
parent e017d903c6
commit 073bdbedcc
2 changed files with 7 additions and 1 deletions

View File

@ -132,6 +132,11 @@ void AegisubApp::OnAssertFailure(const wxChar *file, int line, const wxChar *fun
wxApp::OnAssertFailure(file, line, func, cond, msg);
}
AegisubApp::AegisubApp() {
// http://trac.wxwidgets.org/ticket/14302
wxSetEnv("UBUNTU_MENUPROXY", "0");
}
/// @brief Gets called when application starts.
/// @return bool
bool AegisubApp::OnInit() {

View File

@ -34,7 +34,6 @@
/// @ingroup main
///
#ifndef AGI_PRE
#include <wx/app.h>
#include <wx/file.h>
@ -113,6 +112,8 @@ class AegisubApp: public wxApp {
void HandleEvent(wxEvtHandler *handler, wxEventFunction func, wxEvent& event) const;
public:
AegisubApp();
/// DOCME
AegisubLocale locale;