added wxStandardPaths::GetDocumentsDir() (patch 1214360)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-17 01:12:04 +00:00
parent af6c0f1de7
commit 17af82fb4c
13 changed files with 80 additions and 5 deletions

View File

@@ -521,7 +521,7 @@ bool wxIsBusy()
#if wxUSE_BASE
wxString wxMacFindFolder( short vol,
wxString wxMacFindFolderNoSeparator( short vol,
OSType folderType,
Boolean createFolder)
{
@@ -529,11 +529,20 @@ wxString wxMacFindFolder( short vol,
wxString strDir ;
if ( FSFindFolder( vol, folderType, createFolder, &fsRef) == noErr)
strDir = wxMacFSRefToPath( &fsRef ) + wxFILE_SEP_PATH ;
{
strDir = wxMacFSRefToPath( &fsRef );
}
return strDir ;
}
wxString wxMacFindFolder( short vol,
OSType folderType,
Boolean createFolder)
{
return wxMacFindFolderNoSeparator(vol, folderType, createFolder) + wxFILE_SEP_PATH;
}
#endif // wxUSE_BASE
#if wxUSE_GUI