GNOME Bugzilla – Bug 345855
Should have a sort function in GtkFileSystem
Last modified: 2009-05-02 09:00:02 UTC
Hi, Volume's icons in the GtkFileChooser are not sorted the same way nautilus'places sidebar does. Nautilus uses gnome_vfs_volume_compare() to sort volume list. As I understand GTK we can have GnomeVFS as backend for GtkFileSystem and we should add a binding for the _compare function and then use it in the file chooser so we get volumes in the same order than nautilus and other GNOME applications. Last patches to gnomeVFS and nautilus fixed a couple of bugs and now nautilus and gtk displays the same volumes/drives list when using gnomeVFS backend in gtk but filechooser displays the list in another order which isn't intuitive for the user.
Created attachment 67965 [details] what it looks like now We can see GtkFileChooser (from gedit 2.14) on the left and nautilus (2.14) on the right. So items are the same but not the order.
Moving to libgnomeui. GtkFileSystemGnomeVFS should give us the volumes in the correct order.
There is no file chooser backend in libgnomeui any more.