GtkFileChooserButton uses previously selected path when choosing a unmounted device
Submitted by Muflone
Overview: While the FileChooserButton is not expanded (the FileChooserDialog is not shown, just the list in the ComboBox) and the user selects a unmounted device, the previously selected paths is automatically assumed.
Steps to reproduce:
- Open gnome-search-tool (or similar tool which uses GtkFileChooserButton)
- Select a valid path like the home folder
- Select an unmounted device
- Press the search button
Actual result: The search is made in the previously selected path (eg. Home folder). No warnings or errors are reported about the unmounted device. Using the widget from PyGTK I've checked that no signals are fired if the user choose an unmounted device and get_uri reports the previous path.
Expected result: The chooser should warn or deny to choose an unmounted device. Some signals should inform the developer that an invalid path was selected OR BOTH get_uri and get_filename should return the correct unmounted path AND all signals should be fired to let the developer to decide if such path is valid/mounted.
Build Date & Platform: Tested with: GTK 2.14.4 from OpenSuse 11.1 GTK 2.16.1 from Ubuntu 9.04 GTK 2.18.3 from Ubuntu 9.10 GTK 2.20.1 from Debian sid GTK 2.21.2 from Ubuntu 10.10 alpha 2
Additional information: This bug is not strictly related to gnome-search-tool, it's reproducible with every app that uses GtkFileChooserButton.