GNOME Bugzilla – Bug 586953
FileChooserButton get_current_folder returns wrong path
Last modified: 2009-09-21 09:20:04 UTC
When I manually enter a path and hit enter in the FileChooserButton the wrong path is returned by get_current_folder(). Steps to reproduce: Compile the attached test-case with g++ `pkg-config --cflags --libs gtkmm-2.4` main.cpp -o test run ./test Click on the FileChooserButton, select other, enter "/tmp/" in the location bar and press enter. The file chooser button will now show "tmp". Close the window, the return value of get_current_folder() is printed in the console, it will be our home directory. This does work fine however when you open the directory with the mouse and press open. Best regards, Dirk
Created attachment 137368 [details] Minimal testcase to reproduce the problem
Yes, it's indeed odd behaviour, but I'm not sure if this is a gtkmm bug, it seems a gtk+ bug to me, the get_current_folder() function is defined in ./gtk/gtkmm/filechooser.cc line 374 as a simple wrapper for: gchar * gtk_file_chooser_get_current_folder(GtkFileChooser* chooser);
Ok, I converted the test case to plain c and filed the bug at http://bugzilla.gnome.org/show_bug.cgi?id=587039
Thanks. Closing this as a duplicate of that C bug. *** This bug has been marked as a duplicate of bug 587039 ***