News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

wxSmith: Little patch due to change from wxNotebook to wxFlatNotebook

Started by Der Meister, January 06, 2006, 03:49:41 PM

Previous topic - Next topic

Der Meister

Since Code::Blocks now uses the new 'wxFlatNotebook' a little patch for wxSmith is necessary:
$ 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.

mandrav

Be patient!
This bug will be fixed soon...

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 :(

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

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 :(

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: