From 7f9fdfca675a4096f70754777c96fa4c47234582 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Tue, 30 Jun 2020 12:36:21 +0200 Subject: [PATCH] Fix Gtk deprecation warning for save dialog as well Signed-off-by: Christopher Arndt --- jack_mixer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jack_mixer.py b/jack_mixer.py index a7189b4..e66d95d 100755 --- a/jack_mixer.py +++ b/jack_mixer.py @@ -315,9 +315,9 @@ class JackMixer(SerializedObject): def on_save_as_cb(self, *args): dlg = Gtk.FileChooserDialog(title='Save', parent=self.window, - action=Gtk.FileChooserAction.SAVE, - buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, - Gtk.STOCK_SAVE, Gtk.ResponseType.OK)) + action=Gtk.FileChooserAction.SAVE) + dlg.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, + Gtk.STOCK_SAVE, Gtk.ResponseType.OK) dlg.set_default_response(Gtk.ResponseType.OK) if dlg.run() == Gtk.ResponseType.OK: self.current_filename = dlg.get_filename() -- 2.39.2