[ROOT] fIniDir in TGFileInfo

From: Xavier Bertou (bertou@in2p3.fr)
Date: Tue Mar 20 2001 - 00:39:44 MET


Hi rooters,
The field is not used in the code. If its purpose is to tell in which
directory the popup window should start, then a simple constructor
TGFileInfo() {fIniDir=NULL;};
added in gui/inc/TGFileDialog.h, and in gui/src/TGFileDialog.cxx
   if (fFileInfo->fIniDir==NULL)
         fFc->ChangeDirectory(".");
	    else fFc->ChangeDirectory(fFileInfo->fIniDir);
allows to take it into account. It's not perfect (in case directory
doesn't exist, could add a stat(fFileInfo->fIniDir) to check it and take
"." else), but it works well, and it's quite usefull.
Cheers,
-- 
Xavier



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET