From 351b9f9b794c8b63769b7d33603f4dc5a7af13b8 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 21 May 2012 15:17:11 +0000 Subject: [PATCH] - MGR: Fix menu redraw issue under Ubuntu's new interface. fixes #1180 (From Huibert) clientgui/ AdvancedFrame.cpp svn path=/trunk/boinc/; revision=25702 --- checkin_notes | 8 ++++++++ clientgui/AdvancedFrame.cpp | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/checkin_notes b/checkin_notes index 122ffebd0e..e1f5632117 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3973,3 +3973,11 @@ David 20 May 2012 manage_apps.php api/ boinc_api.cpp,h + +Rom 21 May 2012 + - MGR: Fix menu redraw issue under Ubuntu's new interface. + fixes #1180 + (From Huibert) + + clientgui/ + AdvancedFrame.cpp diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index 49bd6ed1d5..d3c2b1f5ea 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -701,6 +701,10 @@ bool CAdvancedFrame::CreateMenu() { wxMenuBar* m_pOldMenubar = GetMenuBar(); SetMenuBar(m_pMenubar); +#ifdef __WXGTK__ + // Force a redraw of the menu under Ubuntu's new interface + SendSizeEvent(); +#endif #ifdef __WXMAC__ m_pMenubar->MacInstallMenuBar(); MacLocalizeBOINCMenu();