Viewer now takes wxString URL to try avoiding encoding issues.

Part of issue #94.
This commit is contained in:
WrinklyNinja
2014-01-29 14:30:28 +00:00
parent 9281ead455
commit d60ab1fee5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -26,8 +26,8 @@
#include <wx/webview.h>
Viewer::Viewer(wxWindow *parent, const wxString& title, const std::string& path) : wxFrame(parent, wxID_ANY, title) {
wxWebView * web = wxWebView::New(this, wxID_ANY, boss::ToFileURL(path));
Viewer::Viewer(wxWindow *parent, const wxString& title, const wxString& url) : wxFrame(parent, wxID_ANY, title) {
wxWebView * web = wxWebView::New(this, wxID_ANY, url);
web->Bind(wxEVT_WEBVIEW_NAVIGATING, &Viewer::OnNavigationStart, this);
+1 -1
View File
@@ -30,7 +30,7 @@
class Viewer : public wxFrame {
public:
Viewer(wxWindow *parent, const wxString& title, const std::string& path);
Viewer(wxWindow *parent, const wxString& title, const wxString& url);
void OnNavigationStart(wxWebViewEvent& event);
};