X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..f155075229d771430f0793700f5048ad4be00e9d:/samples/typetest/typetest.cpp diff --git a/samples/typetest/typetest.cpp b/samples/typetest/typetest.cpp index b71edda8e5..0f3a339c0b 100644 --- a/samples/typetest/typetest.cpp +++ b/samples/typetest/typetest.cpp @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". @@ -25,8 +25,8 @@ #include "typetest.h" -#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) -#include "mondrian.xpm" +#ifndef wxHAS_IMAGES_IN_RESOURCES + #include "../sample.xpm" #endif #ifdef new @@ -80,7 +80,7 @@ bool MyApp::OnInit() wxPoint(50, 50), wxSize(450, 340)); // Give it an icon - frame->SetIcon(wxICON(mondrian)); + frame->SetIcon(wxICON(sample)); // Make a menubar wxMenu *file_menu = new wxMenu; @@ -116,8 +116,6 @@ bool MyApp::OnInit() // Show the frame frame->Show(true); - SetTopWindow(frame); - return true; } @@ -894,10 +892,10 @@ void MyApp::DoUnicodeDemo(wxCommandEvent& WXUNUSED(event)) printf( "\n\nConversion with wxConvLocal:\n" ); wxConvCurrent = &wxConvLocal; - printf( (const char*) str.mbc_str() ); + puts( str.mbc_str() ); printf( "\n\nConversion with wxConvLibc:\n" ); wxConvCurrent = &wxConvLibc; - printf( (const char*) str.mbc_str() ); + puts( str.mbc_str() ); } #endif