[API 2.4] FileChooserButton directory selection



Hi,

I put a FileChooserButton in an Assistant, in directory selection mode. When I display the next page of the Assistant, I print the content of the button to the console.

At runtime, when I click the button, if I go into the folder and click OK, then get_current_folder() and get_filename() will print my home directory. However, if I select the directory (just ONE click, so that the dialog does not display what's inside the directory), then get_current_folder() will print my home directory and get_filename() will print the directory I selected!

This looks similar to this bug: https://bugzilla.gnome.org/show_bug.cgi?id=683708

The bug appeared after I updated from Ubuntu 10.10 to the latest Mint. 6 months ago, any way of selecting a directory created the right output with get_current_folder()!

Does anyone has an explanation to this behaviour, and perhaps a workaround?

Thanks,
yann


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]