Gtk.FileDialog brings up GTK 3 dialog
I am using GTK 4 so when I show a Gtk.FileDialog
I expect it to be using the modern file dialog from GTK 4 but instead I get the old file dialog from GTK 3.
#!/usr/bin/env python3
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk
class ApplicationWindow(Gtk.ApplicationWindow):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
file_dialog = Gtk.FileDialog()
file_dialog.open()
def on_activate(app):
win = ApplicationWindow(application=app)
win.present()
if __name__ == "__main__":
app = Gtk.Application()
app.connect("activate", on_activate)
app.run()