Hi, I’m developing an application using Gtk4 and Libadwaita and line with Gnome’s Human Interface Guidelines and I’d like to know what’s the preferred way of implementing a dialog to let a user open a file.
I’ve seen that Gtk4 has a dialog class, which is deprecated, as well as, some elements that seem to be based on the dialog class but don’t inherit from it and are not deprecated, e.g., alert dialog.
File dialog is one of such classes and it seems to be what I’m looking for, but I’m not sure if Libadwaita offers a preferable alternative to this file dialog. As far as I can tell, Libadwaita implements its own base dialog and specific dialogs (e.g, it’s own alert dialog) which inherit from the base dialog, but there’s not Libadwaita version of a file dialog, so shall I just use the one from Gtk4? Or is there a way of integrating Gtk’s file dialog with Libadwaita’s base dialog?
I’ve looked guidelines on how to handle this situation on Gnome’s HIG, but I didn’t find anything related to opening/saving files.