]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ownerdrw/ownerdrw.cpp
eliminate possibility of configure enabling gnomeprint with GTK3
[wxWidgets.git] / samples / ownerdrw / ownerdrw.cpp
index 52b6c84518a5feccfe4dc063cc23cb39dd2fd32f..80a7c2eb7471b26297f9883090d4348b1a913277 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     13.11.97
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -97,8 +97,6 @@ bool OwnerDrawnApp::OnInit(void)
         = new OwnerDrawnFrame(NULL, wxT("wxWidgets Ownerdraw Sample"),
                               50, 50, 450, 340);
 
-    SetTopWindow(pFrame);
-
     return true;
 }
 
@@ -206,7 +204,7 @@ void OwnerDrawnFrame::InitMenu()
 
     drawn_menu->AppendSeparator();
 
-    pItem = new wxMenuItem(drawn_menu, Menu_Drawn2, wxT("&Cheked item"),
+    pItem = new wxMenuItem(drawn_menu, Menu_Drawn2, wxT("&Checked item"),
         wxT("check/uncheck me!"), wxITEM_CHECK);
     drawn_menu->Append(pItem);
     drawn_menu->Check(Menu_Drawn2, true);
@@ -232,7 +230,7 @@ void OwnerDrawnFrame::InitMenu()
 
     native_menu->AppendSeparator();
 
-    pItem = new wxMenuItem(native_menu, Menu_Native2, wxT("&Cheked item"),
+    pItem = new wxMenuItem(native_menu, Menu_Native2, wxT("&Checked item"),
         wxT("check/uncheck me!"), wxITEM_CHECK);
     native_menu->Append(pItem);
     native_menu->Check(Menu_Native2, true);
@@ -265,7 +263,7 @@ OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, const wxChar *title,
          : wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h))
 {
     // set the icon
-    SetIcon(wxIcon(wxT("mondrian")));
+    SetIcon(wxICON(sample));
 
     // create the menu
     InitMenu();