Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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