From 4189bbf4344de57fe362b1791dd2c8a32958e987 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Mon, 19 Sep 2011 20:49:29 +0200 Subject: [PATCH] fix notification.set_hint() --- Mailnag/mailnag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailnag/mailnag.py b/Mailnag/mailnag.py index 18b3c56..e9c0d82 100644 --- a/Mailnag/mailnag.py +++ b/Mailnag/mailnag.py @@ -508,7 +508,7 @@ class MailChecker: # TODO : gi.repository Notify seems to be unstable currently (set_hint and add_action crash) # Notify.init(cfg.get('general', 'messagetray_label')) # initialize Notification # self.notification = Notify.Notification.new(" ", None, None) # empty string will emit a gtk warning - # self.notification.set_hint("resident", True) # don't close when the bubble or actions are clicked + # self.notification.set_hint("resident", GLib.Variant("b", True)) # don't close when the bubble or actions are clicked # self.notification.set_category("email") # self.notification.add_action("open", _("Open in mail reader"), self.__notification_action_handler, None, None) # self.notification.add_action("close", _("Close"), self.__notification_action_handler, None, None)