X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29e7e51a4d9f579dc8e695043a7c18a538085714..11dfaa5f1dab5a787dc711c8d9881280509a50ae:/samples/minimal/minimal.cpp diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index 6a093c743e..4434353621 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -16,6 +16,7 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- + #ifdef __GNUG__ #pragma implementation "minimal.cpp" #pragma interface "minimal.cpp" @@ -29,16 +30,16 @@ #endif // for all others, include the necessary headers (this file is usually all you -// need because it includes almost all "standard" wxWindows headers +// need because it includes almost all "standard" wxWindows headers) #ifndef WX_PRECOMP #include "wx/wx.h" #endif // ---------------------------------------------------------------------------- -// ressources +// resources // ---------------------------------------------------------------------------- // the application icon -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) #include "mondrian.xpm" #endif @@ -106,6 +107,13 @@ END_EVENT_TABLE() // not wxApp) IMPLEMENT_APP(MyApp) +#ifdef __WXUNIVERSAL__ + #include "wx/univ/theme.h" + + WX_USE_THEME(win32); + WX_USE_THEME(gtk); +#endif // __WXUNIVERSAL__ + // ============================================================================ // implementation // ============================================================================ @@ -114,7 +122,7 @@ IMPLEMENT_APP(MyApp) // the application class // ---------------------------------------------------------------------------- -// `Main program' equivalent: the program execution "starts" here +// 'Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { // create the main application window