Author Topic: wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook  (Read 6833 times)

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
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
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. ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook
« Reply #1 on: January 06, 2006, 04:56:01 pm »
I forgot to commit it before :oops:
Did it now, thanks.
Be patient!
This bug will be fixed soon...

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook
« Reply #2 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 :(

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook
« Reply #3 on: January 06, 2006, 07:16:10 pm »
Thx for fixing that bug :) I'm so overloaded that I haven't checked out for few days :(

Don't worry. It was just broken today and for only a couple of hours :)
Be patient!
This bug will be fixed soon...

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook
« Reply #4 on: January 06, 2006, 09:14:09 pm »
Thx for fixing that bug :) I'm so overloaded that I haven't checked out for few days :(

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: