Made wxConvBrokenFileNames public.
Made use of it from GTK+'s wxApp. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -606,6 +606,12 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
||||
wxConvCurrent = (wxMBConv*) NULL;
|
||||
#endif // wxUSE_WCHAR_T/!wxUSE_WCHAR_T
|
||||
|
||||
#ifdef __WXGTK20__
|
||||
m_convBrokenFileNames = new wxConvBrokenFileNames;
|
||||
m_oldConvFileName = wxConvFileName;
|
||||
wxConvFileName = m_convBrokenFileNames;
|
||||
#endif
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
// gtk_init() wants UTF-8, not wchar_t, so convert
|
||||
int i;
|
||||
@@ -680,6 +686,11 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
||||
|
||||
void wxApp::CleanUp()
|
||||
{
|
||||
#ifdef __WXGTK20__
|
||||
delete m_convBrokenFileNames;
|
||||
wxConvFileName = m_oldConvFileName;
|
||||
#endif
|
||||
|
||||
gdk_threads_leave();
|
||||
|
||||
wxAppBase::CleanUp();
|
||||
|
Reference in New Issue
Block a user