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:
parent
c51deffc32
commit
af159c4481
@ -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++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user