]> git.0d.be Git - jack_mixer.git/blobdiff - jack_mixer.py
Fix Gtk deprecation warning for save dialog as well
[jack_mixer.git] / jack_mixer.py
index a7189b403960626ed43a93fa2869fc988f118418..e66d95dfd3ba8079f77360ce9ab40386bc6e510f 100755 (executable)
@@ -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()