[meld] misc: Update for kwarg deprecations
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] misc: Update for kwarg deprecations
- Date: Wed, 31 Dec 2014 23:32:36 +0000 (UTC)
commit fd5b81a2a0fef62f879fa7375742abe21a8145b9
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Dec 14 06:52:29 2014 +1000
misc: Update for kwarg deprecations
meld/misc.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/meld/misc.py b/meld/misc.py
index ae128b2..f5278a3 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -55,11 +55,12 @@ def error_dialog(
parent = app.get_active_window()
dialog = Gtk.MessageDialog(
- parent=parent,
- flags=Gtk.DialogFlags.MODAL | Gtk.DialogFlags.DESTROY_WITH_PARENT,
- type=messagetype,
+ transient_for=parent,
+ modal=True,
+ destroy_with_parent=True,
+ message_type=messagetype,
buttons=Gtk.ButtonsType.CLOSE,
- message_format=primary)
+ text=primary)
dialog.format_secondary_markup(secondary)
dialog.run()
dialog.destroy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]