X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b17ba727c69f66dfa0a73dfdd04ff7d30e3c188..ec6e0a192c1abd0c7880e7ab11cd63de9706aef8:/src/generic/dirdlgg.cpp diff --git a/src/generic/dirdlgg.cpp b/src/generic/dirdlgg.cpp index 8ea3fa571e..ab07302a82 100644 --- a/src/generic/dirdlgg.cpp +++ b/src/generic/dirdlgg.cpp @@ -173,10 +173,12 @@ wxDirCtrl::wxDirCtrl(wxWindow *parent, const wxWindowID id, const wxString &WXUN : wxTreeCtrl( parent, id, pos, size, style, wxDefaultValidator, name ) { + #ifndef __WXMSW__ m_imageListNormal = new wxImageList(16, 16, TRUE); m_imageListNormal->Add(wxICON(icon1)); m_imageListNormal->Add(wxICON(icon2)); SetImageList(m_imageListNormal); + #endif m_showHidden = FALSE; m_rootId = AddRoot( _("Sections") ); @@ -194,6 +196,10 @@ void wxDirCtrl::SetupSections() m_paths.Clear(); m_names.Clear(); +#ifdef __WXMSW__ + // better than nothing + ADD_SECTION(_T("c:\\"), _("My Harddisk") ) +#else ADD_SECTION(_T("/"), _("The Computer") ) wxGetHomeDir(&home); ADD_SECTION(home, _("My Home") ) @@ -203,6 +209,7 @@ void wxDirCtrl::SetupSections() ADD_SECTION(_T("/var"), _("Variables") ) ADD_SECTION(_T("/etc"), _("Etcetera") ) ADD_SECTION(_T("/tmp"), _("Temporary") ) +#endif } #undef ADD_SECTION @@ -215,8 +222,12 @@ void wxDirCtrl::CreateItems(const wxTreeItemId &parent) for (unsigned int i=0; im_hasSubDirs) SetItemHasChildren(id); } }