Compile fix. Where exactly is "wxString GetHomeDir()"?

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-12-09 15:23:32 +00:00
parent c51deffc32
commit af159c4481

View File

@ -1339,7 +1339,11 @@ void wxGNOMEIconHandler::Init()
{ {
wxArrayString dirs; wxArrayString dirs;
dirs.Add(_T("/usr/share")); dirs.Add(_T("/usr/share"));
dirs.Add(wxGetHomeDir() + _T("/.gnome"));
wxString gnomedir;
wxGetHomeDir( &gnomedir );
gnomedir += _T("/.gnome");
dirs.Add( gnomedir );
size_t nDirs = dirs.GetCount(); size_t nDirs = dirs.GetCount();
for ( size_t nDir = 0; nDir < nDirs; nDir++ ) for ( size_t nDir = 0; nDir < nDirs; nDir++ )
@ -1495,7 +1499,11 @@ void wxKDEIconHandler::Init()
{ {
wxArrayString dirs; wxArrayString dirs;
dirs.Add(_T("/usr/share")); dirs.Add(_T("/usr/share"));
dirs.Add(wxGetHomeDir() + _T("/.kde/share"));
wxString kdedir;
wxGetHomeDir( &kdedir );
kdedir += _T("/.kde/share");
dirs.Add( kdedir );
size_t nDirs = dirs.GetCount(); size_t nDirs = dirs.GetCount();
for ( size_t nDir = 0; nDir < nDirs; nDir++ ) for ( size_t nDir = 0; nDir < nDirs; nDir++ )