Skip to content

Commit

Permalink
#4210 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 3, 2024
1 parent 7ae93a2 commit 1ec038b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions xpra/client/gtk3/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,8 @@ def show_file_upload(self, *args):
if self.remote_open_files:
buttons += [Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT]
buttons += [Gtk.STOCK_OK, Gtk.ResponseType.OK]
self.file_dialog = Gtk.FileChooserDialog(
"File to upload",
parent=None,
action=Gtk.FileChooserAction.OPEN,
buttons=tuple(buttons))
self.file_dialog = Gtk.FileChooserDialog(title="File to upload", action=Gtk.FileChooserAction.OPEN)
self.file_dialog.add_buttons(*buttons)
self.file_dialog.set_default_response(Gtk.ResponseType.OK)
self.file_dialog.connect("response", self.file_upload_dialog_response)
self.file_dialog.show()
Expand Down

0 comments on commit 1ec038b

Please sign in to comment.