I’m currently changing deprecated code in my GTK4 C app, and while changing GtkFileChooser to GtkFileDialog (which is way easier to use), the only thing I’m missing is the filter that apparently does nothing. The file dialog at runtime has no extension list. Maybe isn’t it implemented for the moment on Windows ?
I’m continuing the coding on Linux (it’s nice that the code changed on Windows works on Linux even if I needed to update my GTK4 to latest version to have access to new widgets replacing deprecated ones). And it gives some hints to see what I’m doing wrong. I have a warning saying that gtk_file_dialog_set_filters expects a “GListModel *” and I’m giving it a “GtkFilterListModel *”. I tried to cast it but it doesn’t work like that.