]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/text/text.cpp
compilation fix after last commit
[wxWidgets.git] / samples / text / text.cpp
index f8ed400e59a9ae14b365f73ce4b4301ad9de7017..0e4629e22a6c4eaa34ded0cce92a927db2c0b986 100644 (file)
 #include "wx/numdlg.h"
 #include "wx/tokenzr.h"
 
+#ifndef __WXMSW__
+    #include "../sample.xpm"
+#endif
+
 //----------------------------------------------------------------------
 // class definitions
 //----------------------------------------------------------------------
@@ -1369,6 +1373,8 @@ END_EVENT_TABLE()
 MyFrame::MyFrame(wxFrame *frame, const wxChar *title, int x, int y, int w, int h)
        : wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h) )
 {
+    SetIcon(wxICON(sample));
+
 #if wxUSE_STATUSBAR
     CreateStatusBar(2);
 #endif // wxUSE_STATUSBAR