Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook

(1/1)

Der Meister:
Since Code::Blocks now uses the new 'wxFlatNotebook' a little patch for wxSmith is necessary:

--- Code: ---$ svn diff src/plugins/contrib/wxSmith/
Index: src/plugins/contrib/wxSmith/wxsmith.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxsmith.cpp     (revision 1662)
+++ src/plugins/contrib/wxSmith/wxsmith.cpp     (working copy)
@@ -14,7 +14,7 @@
 #include <messagemanager.h>
 #include <cbeditor.h>
 #include <projectmanager.h>
-#include <wx/notebook.h>
+#include <wxFlatNotebook/wxFlatNotebook.h>
 #include <wx/sashwin.h>
 #include <configmanager.h>
 #include <cbexception.h>
@@ -90,7 +90,7 @@
 
 void wxSmith::OnAttach()
 {
-    wxNotebook* Notebook = Manager::Get()->GetNotebook();
+    wxFlatNotebook* Notebook = Manager::Get()->GetProjectManager()->GetNotebook();
        if ( Notebook )
        {
         // Creating main splitting objects

--- End code ---
I didn't test if it really works and I'm absolutely not sure if using 'GetProjectManager' is correct here - but at least it compiles again. ;)

mandrav:
I forgot to commit it before :oops:
Did it now, thanks.

byo:
Thx for fixing that bug :) I'm so overloaded that I haven't checked out for few days :(

mandrav:

--- Quote from: byo on January 06, 2006, 06:24:37 pm ---Thx for fixing that bug :) I'm so overloaded that I haven't checked out for few days :(

--- End quote ---

Don't worry. It was just broken today and for only a couple of hours :)

cyberkoa:

--- Quote from: byo on January 06, 2006, 06:24:37 pm ---Thx for fixing that bug :) I'm so overloaded that I haven't checked out for few days :(


--- End quote ---
me too not checked out for few days , early and end of month/year is the busiest period for an application support everyday go back home at abt 8-9pm, tired  :(

Anyway , I am working on adding wxStaticBitmap widget , need some time to implement the widget with new property , hope to get it up before I go back to my home country end of this month ..


mandrav, your signature .. "Be patient ! Commited already" ... funny  :lol:


Navigation

[0] Message Index

Go to full version