mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
debug-viewer: Use GtkFileChooserNative to open logs
This provides flatpak document portal support Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5390>
This commit is contained in:
parent
babc18c36e
commit
6f62b24788
1 changed files with 2 additions and 4 deletions
|
@ -572,10 +572,8 @@ class Window (object):
|
|||
@action
|
||||
def handle_open_file_action_activate(self, action):
|
||||
|
||||
dialog = Gtk.FileChooserDialog(None, self.gtk_window,
|
||||
Gtk.FileChooserAction.OPEN,
|
||||
(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
|
||||
Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT,))
|
||||
dialog = Gtk.FileChooserNative.new(None, self.gtk_window,
|
||||
Gtk.FileChooserAction.OPEN, None, None)
|
||||
response = dialog.run()
|
||||
dialog.hide()
|
||||
if response == Gtk.ResponseType.ACCEPT:
|
||||
|
|
Loading…
Reference in a new issue