From 6f62b247882d478ba80d16494d9a8e09b36f165c Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Mon, 25 Sep 2023 16:11:57 +0100 Subject: [PATCH] debug-viewer: Use GtkFileChooserNative to open logs This provides flatpak document portal support Part-of: --- .../gst-devtools/debug-viewer/GstDebugViewer/GUI/window.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-devtools/debug-viewer/GstDebugViewer/GUI/window.py b/subprojects/gst-devtools/debug-viewer/GstDebugViewer/GUI/window.py index db0ef30536..33e8f0838a 100644 --- a/subprojects/gst-devtools/debug-viewer/GstDebugViewer/GUI/window.py +++ b/subprojects/gst-devtools/debug-viewer/GstDebugViewer/GUI/window.py @@ -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: