GNOME Bugzilla – Bug 306089
The File Chooser should not automatically select a folder when in TK_FILE_CHOOSER_ACTION_SELECT_FOLDER mode
Last modified: 2005-06-07 21:55:13 UTC
Please describe the problem: When using file-roller, if you use the extract icon, a File Chooser is presented. Say you click on a bookmark named "foo". The File Chooser enters the directory *and* selects de first directory in the list, let's say "bar". When you click on the extract button, the files are extracted in "bar"! instead of "foo". Same happens with gnome-search-tool: I want to search in "home", so I click the home icon, but then, the first directory on the list is selected. So it will search in that directory instead of "home" The workaround is to "manually unselect" the directory before you click the ok/extract button. I should be able to just click the "music" or "home" bookmark and press the ok/extract button. Here is a little patch that "solves" the problem. Even when it is not correct, perhaps it will help: (the problem is in the list_select_func) --- gtkfilechooserdefault.c.orig 2005-06-01 00:44:44.000000000 +0200 +++ gtkfilechooserdefault.c 2005-06-01 00:45:17.000000000 +0200 @@ -5838,6 +5838,8 @@ if (impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER) { + return 0; + GtkTreeIter iter, child_iter; const GtkFileInfo *info; Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Ok marking this as a duplicate since the newer report has a discussion. Manuel feel free to attach a patch to Bug 306771 . the patch in this report "obsoletes" the if block - i think this will get rejected by the maintainers. But feel free to post it - do *not* reply to this report, but the other. *** This bug has been marked as a duplicate of 306771 ***
Has already been fixed. Upgrade your gtk+ version. *** This bug has been marked as a duplicate of 171885 ***