]> Pileus Git - ~andy/gtk/commit
bgo#629722 - file chooser should cope with typing a directory name and then Enter
authorStephen Shaw <sshaw@decriptor.com>
Tue, 5 Oct 2010 17:55:03 +0000 (12:55 -0500)
committerFederico Mena Quintero <federico@novell.com>
Tue, 5 Oct 2010 20:35:30 +0000 (15:35 -0500)
commit2b348f9a48de3de7be1a91c6fec1392c9fe1f010
tree4c4b1e3fd4499bbd419bdb253fa2dab3b5ccc657
parent0eab3a7ad73a052789f49889bf4ee260c6075519
bgo#629722 - file chooser should cope with typing a directory name and then Enter

file_exists_get_info_cb() used to let some actions fall through to
the code that checks for the file type of the selected file's parent
(e.g. to see if /foo/bar *is* indeed a folder if you type /foo/bar/baz).
However, we need to be more explicit for each file chooser action, as
in SELECT_FOLDER mode typing /foo/foldername and hitting Enter would not
give you an immediate selection, but rather the file chooser would
complain that it couldn't create that directory as it already exists.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilechooserdefault.c