]> git.saurik.com Git - wxWidgets.git/commitdiff
Load the wxWidgets homepage by default in the wxWebView sample
authorSteve Lamerton <steve.lamerton@gmail.com>
Thu, 26 May 2011 19:53:03 +0000 (19:53 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Thu, 26 May 2011 19:53:03 +0000 (19:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/web/web.cpp

index eddbb9125b87037a2bce575a1a1d5435fe51310e..7b2c490ebe63bcb5845d238833d54de5b47cb0d2 100644 (file)
@@ -538,8 +538,8 @@ bool wxMiniApp::OnInit()
     stop    = m_toolbar->AddTool(wxID_ANY, _("Stop"),    wxBitmap(stop_xpm));
     reload  = m_toolbar->AddTool(wxID_ANY, _("Reload"),  wxBitmap(refresh_xpm));
     
-    url = new wxTextCtrl(m_toolbar, wxID_ANY, wxT("http://www.google.com"), 
-                         wxDefaultPosition, wxSize(400, -1), wxTE_PROCESS_ENTER );
+    url = new wxTextCtrl(m_toolbar, wxID_ANY, wxT(""),  wxDefaultPosition,
+                         wxSize(400, -1), wxTE_PROCESS_ENTER );
     m_toolbar->AddControl(url, _("URL"));    
     tools   = m_toolbar->AddTool(wxID_ANY, _("Menu"), wxBitmap(wxlogo_xpm));
     //m_toolbar->SetDropdownMenu(tools->GetId(), toolsMenu);
@@ -578,6 +578,7 @@ bool wxMiniApp::OnInit()
 
     // ---- Create the web view
     m_browser_ctrl = wxWebView::New(mainpane, wxID_ANY);
+    m_browser_ctrl->LoadUrl("http://www.wxwidgets.org");
     
     // ---- Create the notification panel
     {