]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/typetest/typetest.cpp
Create a wrapper file for X11/XKBlib.h header.
[wxWidgets.git] / samples / typetest / typetest.cpp
index b71edda8e5ac56785da70d3f0bb3737996e3dd65..69e074b65da1361099b0fcbede3d7a8b3374a7d6 100644 (file)
@@ -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;
 }