10000 fix GTk3 deprecation warning · matplotlib/matplotlib@c1cdb5d · GitHub
[go: up one dir, main page]

Skip to content

Commit c1cdb5d

Browse files
committed
fix GTk3 deprecation warning
1 parent 896e915 commit c1cdb5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_gtk3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def __init__(self, canvas):
339339
def save_figure(self, *args):
340340
dialog = Gtk.FileChooserDialog(
341341
title="Save the figure",
342-
parent=self.canvas.get_toplevel(),
342+
transient_for=self.canvas.get_toplevel(),
343343
action=Gtk.FileChooserAction.SAVE,
344344
buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
345345
Gtk.STOCK_SAVE, Gtk.ResponseType.OK),

0 commit comments

Comments
 (0)
0