Fix an old call to notify_action_required()

Before commit 1aa4b7db
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.
parent dfdf1e74
......@@ -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"))
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment