Update of /cvsroot/audacity/audacity-src/src In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv11875/src
Modified Files: Project.cpp Log Message: Use wxGenericFileDialog for opening files (Windows only). Requires filedlgg.cpp to be enabled in wxWidgets core/generic. Index: Project.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v retrieving revision 1.349 retrieving revision 1.350 diff -u -d -r1.349 -r1.350 --- Project.cpp 20 May 2008 19:02:59 -0000 1.349 +++ Project.cpp 20 May 2008 19:40:55 -0000 1.350 @@ -77,6 +77,7 @@ #include <wx/string.h> #include <wx/textfile.h> #include <wx/timer.h> +#include <wx/generic/filedlgg.h> #include <wx/arrimpl.cpp> // this allows for creation of wxObjArray @@ -1717,7 +1718,12 @@ // Construct and display the file dialog wxArrayString selected; +#if defined(__WXMSW__) + // Make sure you build wxWidgets with filedlgg.cpp enabled in core/generic + wxGenericFileDialog dlog(NULL, +#else FileDialog dlog(NULL, +#endif _("Select one or more audio files..."), path, wxT(""), ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs