From 4e257ee73563f526a96dfeedaa61e1f5f59012f7 Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Thu, 26 May 2011 19:53:03 +0000 Subject: [PATCH] Load the wxWidgets homepage by default in the wxWebView sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/web/web.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/web/web.cpp b/samples/web/web.cpp index eddbb9125b..7b2c490ebe 100644 --- a/samples/web/web.cpp +++ b/samples/web/web.cpp @@ -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 { -- 2.47.2