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 306089 - The File Chooser should not automatically select a folder when in TK_FILE_CHOOSER_ACTION_SELECT_FOLDER mode
The File Chooser should not automatically select a folder when in TK_FILE_CHO...
Status: RESOLVED DUPLICATE of bug 171885
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.6.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-05-31 22:54 UTC by Manuel Clos
Modified: 2005-06-07 21:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Manuel Clos 2005-05-31 22:54:43 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:
Comment 1 Christian Kirbach 2005-06-07 16:04:15 UTC
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 ***
Comment 2 Christian Kirbach 2005-06-07 21:55:13 UTC
Has already been fixed. Upgrade your gtk+ version.

*** This bug has been marked as a duplicate of 171885 ***