X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FbbEditor%2FbbEditor.cxx;h=ca584671744db6168b083f3fcbedb16c6a29912b;hb=78e35be5c1ce2fe75d995cbcde0d1d631e8ac487;hp=4bdc42383d3ae83c56dd1ca70b9d2bd6fa319cfd;hpb=1910361932998533c37b53ea81d580bba29f0ee1;p=bbtkGEditor.git diff --git a/appli/bbEditor/bbEditor.cxx b/appli/bbEditor/bbEditor.cxx index 4bdc423..ca58467 100644 --- a/appli/bbEditor/bbEditor.cxx +++ b/appli/bbEditor/bbEditor.cxx @@ -8,26 +8,31 @@ #include #include - - +#include + class wxBBEditorApp : public wxApp { public: bool OnInit( ); int OnExit() { return true; } - + }; IMPLEMENT_APP(wxBBEditorApp); - + // ---------------------------------------------------------------------------- // The `main program' equivalent, creating the windows and returning the // main frame bool wxBBEditorApp::OnInit( ) { - wxApp::OnInit(); +#ifdef MACOSX + /* assume this is OSX */ + wxSystemOptions::SetOption("mac.listctrl.always_use_generic", 1); +#endif + + wxApp::OnInit(); #ifdef __WXGTK__ //See http://www.wxwindows.org/faqgtk.htm#locale setlocale(LC_NUMERIC, "C");