X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58f1fdc926e4fc0f0b8ca49384d72e51bea2e86b..5942996c94a82dcbedf7b1041b08acd8d1d97449:/src/generic/dirctrlg.cpp diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index b5ea30a321..5e1a3ffbfe 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -36,16 +36,16 @@ #include "wx/sizer.h" #include "wx/textdlg.h" #include "wx/gdicmn.h" + #include "wx/image.h" + #include "wx/module.h" #endif -#include "wx/module.h" #include "wx/filefn.h" #include "wx/imaglist.h" #include "wx/tokenzr.h" #include "wx/dir.h" #include "wx/artprov.h" #include "wx/mimetype.h" -#include "wx/image.h" #if wxUSE_STATLINE #include "wx/statline.h" @@ -120,7 +120,7 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI wxString path, name; path.Printf(wxT("%c:\\"), driveBuffer[i]); name.Printf(wxT("%c:"), driveBuffer[i]); - + // Do not use GetVolumeInformation to further decorate the // name, since it can cause severe delays on network drives. @@ -544,6 +544,7 @@ bool wxGenericDirCtrl::Create(wxWindow *parent, return false; SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); + SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT)); Init(); @@ -698,8 +699,8 @@ void wxGenericDirCtrl::OnEndEditItem(wxTreeEvent &event) return; if ((event.GetLabel().empty()) || - (event.GetLabel() == _(".")) || - (event.GetLabel() == _("..")) || + (event.GetLabel() == wxT(".")) || + (event.GetLabel() == wxT("..")) || (event.GetLabel().Find(wxT('/')) != wxNOT_FOUND) || (event.GetLabel().Find(wxT('\\')) != wxNOT_FOUND) || (event.GetLabel().Find(wxT('|')) != wxNOT_FOUND))