+ // GNOME 2:
+ else if (sTmp.Contains( wxT("icon_filename=") ) )
+ {
+ curIconFile = sTmp.AfterFirst(wxT('='));
+ if (!wxFileExists(curIconFile))
+ {
+ size_t nDirs = dirs.GetCount();
+ for (size_t nDir = 0; nDir < nDirs; nDir++)
+ {
+ wxString newFile;
+ newFile.Printf(wxT("%s/pixmaps/document-icons/%s.png"),
+ dirs[nDir].c_str(),
+ curIconFile.c_str());
+ if (wxFileExists(newFile))
+ curIconFile = newFile;
+ }
+ }
+ }