GtkFileChooserButton uses previously selected path when choosing an unmounted device

Bug #608787 reported by Muflone
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTK+
Expired
Medium
gtk+2.0 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

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:
1) Open gnome-search-tool (or similar tool which uses GtkFileChooserButton)
2) Select a valid path like the home folder
3) Select an unmounted device
4) 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.

Revision history for this message
Muflone (il-muflone) wrote :
Changed in gtk:
status: Unknown → New
Changed in gtk+2.0 (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Ayan George (ayan) wrote :

Maybe the solution is to make unmounted volumes insensitive so they can't be selected.

If no one sees a problem with that, I will submit a patch upstream.

Changed in gtk:
importance: Unknown → Medium
Revision history for this message
Ayan George (ayan) wrote :

This appears to have been fixed in Natty.

Changed in gtk:
status: New → Confirmed
Changed in gtk:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.