use AddBook(wxFileName)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -155,19 +155,11 @@
|
|||||||
|
|
||||||
help.UseConfig(wxConfig::Get());
|
help.UseConfig(wxConfig::Get());
|
||||||
bool ret;
|
bool ret;
|
||||||
#if defined(__WXMAC__) && !defined(__DARWIN__)
|
|
||||||
ret = help.AddBook(wxT(":helpfiles:testing.hhp"));
|
|
||||||
#else
|
|
||||||
help.SetTempDir(wxT("."));
|
help.SetTempDir(wxT("."));
|
||||||
ret = help.AddBook(wxT("helpfiles/testing.hhp"));
|
ret = help.AddBook(wxFileName(wxT("helpfiles/testing.hhp"), wxPATH_UNIX));
|
||||||
#endif
|
|
||||||
if (! ret)
|
if (! ret)
|
||||||
wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp"));
|
wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp"));
|
||||||
#if defined(__WXMAC__) && !defined(__DARWIN__)
|
ret = help.AddBook(wxFileName(wxT("helpfiles/another.hhp"), wxPATH_UNIX));
|
||||||
ret = help.AddBook(wxT(":helpfiles:another.hhp"));
|
|
||||||
#else
|
|
||||||
ret = help.AddBook(wxT("helpfiles/another.hhp"));
|
|
||||||
#endif
|
|
||||||
if (! ret)
|
if (! ret)
|
||||||
wxMessageBox(_("Failed adding book helpfiles/another.hhp"));
|
wxMessageBox(_("Failed adding book helpfiles/another.hhp"));
|
||||||
}
|
}
|
||||||
|
@@ -79,7 +79,7 @@ bool MyApp::OnInit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
help -> AddBook(argv[i]);
|
help->AddBook(wxFileName(argv[i]));
|
||||||
|
|
||||||
#ifdef __WXMOTIF__
|
#ifdef __WXMOTIF__
|
||||||
delete wxLog::SetActiveTarget(new wxLogGui);
|
delete wxLog::SetActiveTarget(new wxLogGui);
|
||||||
|
Reference in New Issue
Block a user