GNOME Bugzilla – Bug 587039
FileChooserButton get_current_folder returns wrong path
Last modified: 2009-09-21 09:20:04 UTC
Please describe the problem: When I manually enter a path and hit enter in the FileChooserButton the wrong path is returned by get_current_folder(). Steps to reproduce: 1. Compile the attached test-case with gcc `pkg-config --cflags --libs gtk+-2.0` main.c -o test 2. run ./test 3. Click on the FileChooserButton, select other, enter "/tmp/" in the location bar and press enter. The file chooser button will now show "tmp". 4. Close the window, the return value of gtk_file_chooser_get_current_folder will be printed in the console Actual results: The console prints the path of my home directory Expected results: The console prints /tmp/ Does this happen every time? Yes Other information:
Created attachment 137416 [details] Minimal testcase to reproduce the problem
You can reproduce this with that test program like this: 1. Run the program. 2. Click on the file chooser button. 3. Click on the "Other" option in the drop-down menu. 4. Click on a directory in the file list, and click the Open button. 5. Close the window. However, the following change produces the expected result: 4. *Double-click* on a directory in the file list, and click the Open button. Maybe something got broken in SELECT_FOLDER mode. Clicking on a folder and then activating the dialog should make the chooser accept that folder as the selection.
Is this the same problem as bug 557689?
Yeah, this seems to be the same. Thanks for catching this, Hadess. *** This bug has been marked as a duplicate of 557689 ***
*** Bug 586953 has been marked as a duplicate of this bug. ***