bin: center xdg-chooser-app on the current screen

This commit is contained in:
Vincent Bernat 2020-05-17 15:47:51 +02:00
parent 7d6866e3f9
commit 667d50d496

View file

@ -30,6 +30,7 @@ content_type = file_info.get_content_type()
dialog = Gtk.AppChooserDialog.new_for_content_type(None,
Gtk.DialogFlags.MODAL,
content_type)
dialog.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
dialog.get_widget().set_show_default(True)
dialog.get_widget().set_show_fallback(True)
response = dialog.run()