X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82c1f2a390cfba80a1942e763efd14de512e76e7..0356c2597ec9f604918c880e3057650a7bf467f6:/src/generic/dirctrlg.cpp?ds=sidebyside diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 9b12eb10d1..3a7e8ef87a 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -57,6 +57,7 @@ #ifdef __WXMSW__ #include +#include "wx/msw/winundef.h" // FIXME - Mingw32 1.0 has both _getdrive() and _chdrive(). For now, let's assume // older releases don't, but it should be verified and the checks modified @@ -504,7 +505,7 @@ bool wxGenericDirCtrl::Create(wxWindow *parent, Init(); long treeStyle = wxTR_HAS_BUTTONS | wxTR_HIDE_ROOT; - + #ifdef __WXGTK20__ treeStyle |= wxTR_NO_LINES; #endif @@ -553,7 +554,7 @@ bool wxGenericDirCtrl::Create(wxWindow *parent, m_rootId = m_treeCtrl->AddRoot( rootName, 3, -1, rootData); m_treeCtrl->SetItemHasChildren(m_rootId); ExpandDir(m_rootId); // automatically expand first level - + // Expand and select the default path if (!m_defaultPath.empty()) { @@ -819,7 +820,7 @@ void wxGenericDirCtrl::ExpandDir(wxTreeItemId parentId) while(strTok.HasMoreTokens()) { curFilter = strTok.GetNextToken(); - if (d.GetFirst(& eachFilename, m_currentFilterStr, style)) + if (d.GetFirst(& eachFilename, curFilter, style)) { do { @@ -1253,6 +1254,7 @@ void wxDirFilterListCtrl::FillFilterList(const wxString& filter, int defaultFilt // wxFileIconsTable icons // ---------------------------------------------------------------------------- +#ifndef __WXGTK24__ /* Computer */ static const char * file_icons_tbl_computer_xpm[] = { "16 16 7 1", @@ -1279,6 +1281,7 @@ static const char * file_icons_tbl_computer_xpm[] = { " .oXoXoXoXoXo.o ", ".XOXXXXXXXXX.o ", "............o "}; +#endif // GTK+ < 2.4 // ---------------------------------------------------------------------------- // wxFileIconsTable & friends