After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 136235 - Should not run file chooser dialog in a loop to enter folders
Should not run file chooser dialog in a loop to enter folders
Status: RESOLVED FIXED
Product: nautilus-cd-burner
Classification: Deprecated
Component: cd-burner
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus CD Burner Maintainers
Nautilus CD Burner Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-05 00:28 UTC by Federico Mena Quintero
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Comment 1 Alexander Larsson 2004-03-05 08:23:52 UTC
I fixed this, but the entry in your diary isn't completely true. Its
still true that you can type the name of an existing folder in the
save dialog, and it'll gladly pick that name. Thats sort of strange.
Comment 2 Federico Mena Quintero 2004-03-05 16:57:44 UTC
I didn't make any guarantees in my entry ;)

I guess the only thing we can really guarantee is that the "gimme
filename" functions will not return an empty result.

Consider ACTION_OPEN.  We check the selection in the file list so that
we are not returing what is obviously a directory, *but* this
information is valid at the time when the listed folder was read. 
Between the time the test is made and the time you call get_filename()
after gtk_dialog_run(), your program could be scheduled out and the
file could have changed --- what was a folder could have been
rmdir()ed, and a file with the same name could have been created in
its place.

For Save mode, the tests are less stringent.  We only test that the
entered filename is valid through the use of
gtk_file_system_make_path().  I guess we could test whether the
generated path name is known to be a folder, but again, this is not
completely reliable by the time the client program gets the path name.

We should perhaps discuss this in gtk-devel-list.