file selection widget



In a File Selection widget, on GTK 1.2, is there a way to 
retrieve the actual filename entered by the user, NOT the
total filename with the added current path, which is what
GTK returns?

I need this because users can specify a local
file, for example my_file.xml, or a remote file, for example, 
http://hostname/my_file.xml or ftp://hostname/my_file.xml,
in the latter case I get, say:

/home/carlos/http://hostname/my_file.xml

I am parsing this, but I cannot catch all possible
errors unless I know exactly what was actually typed 
in by the user.

Carlos



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]