Esempio n. 1
0
 def __init__(self, closed_cb=None, action_cb=None):
     NotifierBase.__init__(self, closed_cb, action_cb)
     self.notifications = {}
     self.notification_center = NSUserNotificationCenter.defaultUserNotificationCenter(
     )
     assert self.notification_center
Esempio n. 2
0
 def cleanup(self):
     popups = tuple(self._notify_stack)
     self._notify_stack = []
     for x in popups:
         x.hide_notification()
     NotifierBase.cleanup(self)
Esempio n. 3
0
 def cleanup(self):
     nids = list(self.actual_notification_id.items())
     self.actual_notification_id = {}
     for nid, actual_id in nids:
         self.do_close(nid, actual_id)
     NotifierBase.cleanup(self)
Esempio n. 4
0
 def __init__(self, *args):
     NotifierBase.__init__(self, *args)
     self.handles_actions = GTK_Notifier is not None
     self.gtk_notifier = None
     self.gtk_notifications = set()
     self.notification_handles = {}
Esempio n. 5
0
File: gui.py Progetto: tardyp/Xpra
 def cleanup(self):
     NotifierBase.cleanup(self)
     self.notification_center.removeAllDeliveredNotifications()