samuel verstraete wrote: > Yesterday i was working a bit with MS windows and the file chooser of > Excel... I was browsing to a folder with following subdirectories : > sim1, sim2, ... sim10, sim11, sim12,.... > > in Windows explorer and the file choser this becomes : > folder > |-sim1 > |-sim2 > |-sim3 > |-sim4 > |-sim5 > |-sim6 > |-sim7 > |-sim8 > |-sim9 > |-sim10 > |-sim11 > |-sim12 > > in Thunar this would become : > |-sim1 > |-sim10 > |-sim11 > |-sim12 > |-sim2 > |-sim3 > |-sim4 > |-sim5 > |-sim6 > |-sim7 > |-sim8 > |-sim9 > > which is of course correct but still counter intuitive... > while messing around with that it seemed that gtkfilechooser is also > sorting these folders like windows explorer... so incorrect but > completely intuitive...
GtkFileChooser uses g_utf8_collate_key_for_filename[1] to generate appropriate collation keys for files. Thunar currently uses a simple strcmp() on the display names, which is very efficient. Generating collation keys first would certainly add overhead. Dunno if it's really worth the overhead. > gr,S. Benedikt [1] http://developer.gnome.org/doc/API/2.0/glib/glib-Unicode-Manipulation.html#g-utf8-collate-key-for-filename _______________________________________________ Thunar-dev mailing list [email protected] http://foo-projects.org/mailman/listinfo/thunar-dev
