Skip to content

Commit 5f44a14

Browse files
authored
Merge pull request #475 from user202729/fix-gtk-warning
Fix Gtk warning in Gtk.Dialog
2 parents baa76fc + 3aee54c commit 5f44a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textext/asktext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ def ask(self, callback, preview_callback=None):
13311331

13321332
def show_error_dialog(self, title, message_text, exception):
13331333

1334-
dialog = Gtk.Dialog(title, self._window)
1334+
dialog = Gtk.Dialog(title=title, transient_for=self._window)
13351335
dialog.set_default_size(450, 300)
13361336
button = dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.CLOSE)
13371337
button.connect("clicked", lambda w, d=None: dialog.destroy())

0 commit comments

Comments
 (0)