Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2012 08:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/2757420 to your computer and use it in GitHub Desktop.
files/wxwidgets-2.8.0.12-menufix.patch
--- boinc-7.0.28/clientgui/AdvancedFrame.cpp.old 2011-10-21 20:17:10.000000000 +0800
+++ boinc-7.0.28/clientgui/AdvancedFrame.cpp 2012-05-20 05:50:38.000000000 +0800
@@ -701,6 +701,11 @@
wxMenuBar* m_pOldMenubar = GetMenuBar();
SetMenuBar(m_pMenubar);
+#ifdef __WXGTK__
+ /* Force WX to recalculate the size of the (new) menu bar */
+ /* courtesy Huibert (Huib Boinc Forums) */
+ SendSizeEvent();
+#endif
#ifdef __WXMAC__
m_pMenubar->MacInstallMenuBar();
MacLocalizeBOINCMenu();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment