Patch #3000 2010-05-26 07:42

ptdev

Patch for wxWidgets 2.8.11 compatibility
Download
3000-Patch_for_wxWi.patch (1.1 KB)
Category
Application::Bugfix
Status
Rejected
Close date
2012-07-07 14:48
Assigned to
mortenmacfly
Index: main.cpp
===================================================================
--- main.cpp    (revision 6281)
+++ main.cpp    (working copy)
@@ -776,7 +776,7 @@
 
 void MainFrame::PluginsUpdated(cbPlugin* plugin, int status)
 {
-    Freeze();
+    //Freeze();
 
     // menu
     RecreateMenuBar();
@@ -810,12 +810,12 @@
         }
     }
 
-    Thaw();
+    //Thaw();
 }
 
 void MainFrame::RecreateMenuBar()
 {
-    Freeze();
+    //Freeze();
     wxMenuBar* m = GetMenuBar();
     SetMenuBar(0); // unhook old menubar
     CreateMenubar(); // create new menubar
@@ -829,7 +829,7 @@
         SaveViewLayout(it->first, it->second, it->first == m_LastLayoutName);
     }
 
-    Thaw();
+    //Thaw();
 }
 
 void MainFrame::CreateMenubar()
@@ -2412,13 +2412,13 @@
     else
     {
         wxBusyCursor useless;
-        wxPaintEvent e;
-        ProcessEvent(e);
+        //wxPaintEvent e;
+        //ProcessEvent(e);
 
-        Freeze();
+        //Freeze();
         for (unsigned int i = 0; i < files.GetCount(); ++i)
           success &= OpenGeneric(files[i]);
-        Thaw();
+        //Thaw();
     }
     return success;
 }
ptdev 2010-05-26 07:44

Removed Freeze()/Thaw() pairs from the OnFileDrop code and from menubar and toolbar initialization, to resolve rendering issues on file load that appear while linking Code::Blocks to wx2.8.11.

mortenmacfly 2012-07-07 14:48

No longer valid.