[gnome-tweak-tool] Fix an old call to notify_action_required()



commit a79bdbd1ecc2931cff03a8a7b614f47b2be07620
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date:   Mon Sep 22 08:48:41 2014 +0100

    Fix an old call to notify_action_required()
    
    Before commit 1aa4b7db1272b2322e492812de60e072d5d7081a
    the functino notify_action_required() was used, replace with the new
    function notify_logout() instead.
    
    Also fix the wrong signature of _logout function which require 5
    parameters and not four.

 gtweak/tweaks/tweak_group_shell_extensions.py |    5 +----
 gtweak/utils.py                               |    2 +-
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_shell_extensions.py b/gtweak/tweaks/tweak_group_shell_extensions.py
index 750eee7..a2644da 100644
--- a/gtweak/tweaks/tweak_group_shell_extensions.py
+++ b/gtweak/tweaks/tweak_group_shell_extensions.py
@@ -252,10 +252,7 @@ class _ShellExtensionInstallerTweak(Gtk.Box, Tweak):
                     else:
                         verb = _("%s extension installed successfully") % extension_uuid
 
-                    self.notify_action_required(
-                        verb,
-                        _("Restart"),
-                        self._shell.restart)
+                    self.notify_logout()
 
                 else:
                     self.notify_information(_("Error installing extension"))
diff --git a/gtweak/utils.py b/gtweak/utils.py
index 8ec9e2d..a1c30aa 100644
--- a/gtweak/utils.py
+++ b/gtweak/utils.py
@@ -322,7 +322,7 @@ class LogoutNotification:
         else:
             raise Exception("Not Supported")
 
-    def _logout(self, btn, action, unknown):
+    def _logout(self, btn, action, user_data, unknown):
         d = Gio.bus_get_sync(Gio.BusType.SESSION, None)
         proxy = Gio.DBusProxy.new_sync(
                        d,Gio.DBusProxyFlags.NONE, None,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]