]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/test/test.cpp
Remove call to gtk_pizza_set_clear, which doesn't exist any more.
[wxWidgets.git] / samples / html / test / test.cpp
index 56dabce153de90750e73e164897dd90edbd1a8f2..c726b60907fdca1f5637c4f58978268baab8c69e 100644 (file)
@@ -8,11 +8,6 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation
-    #pragma interface
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -239,10 +234,10 @@ void MyFrame::OnPageOpen(wxCommandEvent& WXUNUSED(event))
 {
 #if wxUSE_FILEDLG
     wxString p = wxFileSelector(_("Open HTML document"), wxEmptyString,
-        wxEmptyString, wxEmptyString, wxT("HTML files|*.htm"));
+        wxEmptyString, wxEmptyString, wxT("HTML files|*.htm;*.html"));
 
     if (!p.empty())
-        m_Html->LoadPage(p);
+        m_Html->LoadFile(wxFileName(p));
 #endif // wxUSE_FILEDLG
 }