Est-ce qu'on peut maintenant appeler la boite native d'ouverture de fichier pour chaque OS (Windows et Mac compris)? […] J'utilise par exemple GIMP, et je hurle à chaque fois que j'ouvre ou enregistre un fichier, c'est horrible ce truc pas du tout intégré.
La raison pour ne pas l'implémenter, outre le manque de moyens humains:
The most radical form of desktop integration is to use the platform native file selector instead of the GTK+ file selector. However, this presents severe challenges:
- Many systems only have a modal API for their file selector. Only a single call that results in getting a filename is available. This would result in an API that was different from the standard GtkDialog API where gtk_dialog_run() invokes a recursive main loop.
- Customization facilities will be different from those available in the standard GTK+ file selector. In particular customization APIs that allow embedding application widgets in the file selector probably can't be implemented.
The likely result of allowing using native widgets would be that there would be some cases where a GTK+ program running on such a platform would use the platform native widget, and other cases in which the standard GTK+ file selector would be used; an inconsistency potentially worse than the inconsistency between GTK+ applications and other applications that comes from not using the native widgets.
An argument could be made that any time that the user spends in the file selector actually represents a failure of integration; a single file dialog will never be as efficient way of locating a file or browsing files as the entire file manager. Forcing the user to work in a "open a file" or "save a file" mode goes against a lot of traditional wisdom that says that modes are bad. We should be emphasizing a non-intrusive file selector that the user can get in and out of fast, rather than one with all the bells and whistles.
[^] # Re: Sorti de Qt, point de salut ?
Posté par liberforce (site web personnel, Mastodon) . En réponse au journal Le développement en natif pour un soft universel ?. Évalué à 2.
http://bugzilla.gnome.org/show_bug.cgi?id=319312
La raison pour ne pas l'implémenter, outre le manque de moyens humains:
Source: http://people.redhat.com/otaylor/fosdem2003/file-selector.html#desktop-integration