[gnome-tweak-tool] Remove deprecation warnings
- From: Gian Mario Tagliaretti <gianmt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Remove deprecation warnings
- Date: Mon, 22 Sep 2014 15:56:27 +0000 (UTC)
commit 22316db9234aba93959186ee141a97753f356753
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date: Mon Sep 22 14:19:28 2014 +0100
Remove deprecation warnings
Remove some deprecation warnings on MessageDialog using the new keywords
gtweak/tweaks/tweak_group_shell_extensions.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_shell_extensions.py b/gtweak/tweaks/tweak_group_shell_extensions.py
index a2644da..ba82bf7 100644
--- a/gtweak/tweaks/tweak_group_shell_extensions.py
+++ b/gtweak/tweaks/tweak_group_shell_extensions.py
@@ -140,10 +140,10 @@ class _ShellExtensionTweak(Gtk.ListBoxRow, Tweak):
first_message = _("Uninstall Extension")
second_message = _("Do you want to uninstall the '%s' extension?") % name
dialog = Gtk.MessageDialog(
- self.main_window,0,
- type=Gtk.MessageType.QUESTION,
+ transient_for=self.main_window, flags=0,
+ message_type=Gtk.MessageType.QUESTION,
buttons=Gtk.ButtonsType.YES_NO,
- message_format=first_message)
+ text=first_message)
dialog.format_secondary_text(second_message)
response = dialog.run()
if response == Gtk.ResponseType.YES:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]