Ejemplo n.º 1
0
def autostart(reason, **kwargs):
	if reason == 0:
		# NOTE: we need to be the first one to be notified since other listeners
		# may remove the notifications from the list for good
		Notifications.notificationAdded.insert(0, gotNotification)

		growleeConnection.listen()
Ejemplo n.º 2
0
def autostart(reason, **kwargs):
	if reason == 0:
		# NOTE: we need to be the first one to be notified since other listeners
		# may remove the notifications from the list for good
		Notifications.notificationAdded.insert(0, gotNotification)

		growleeConnection.listen()
Ejemplo n.º 3
0
def autostart(reason, **kwargs):
    if reason == 0:
        if hasattr(Notifications, "notificationQueue"):
            addedList = Notifications.notificationQueue.addedCB
        else:
            addedList = Notifications.notificationAdded
            # NOTE: we need to be the first one to be notified since other listeners
            # may remove the notifications from the list for good
        addedList.insert(0, gotNotification)

        growleeConnection.listen()
Ejemplo n.º 4
0
def autostart(reason, **kwargs):
    if reason == 0:
        if hasattr(Notifications, 'notificationQueue'):
            addedList = Notifications.notificationQueue.addedCB
        else:
            addedList = Notifications.notificationAdded
        # NOTE: we need to be the first one to be notified since other listeners
        # may remove the notifications from the list for good
        addedList.insert(0, gotNotification)

        growleeConnection.listen()
Ejemplo n.º 5
0
 def doConnect(*args, **kwargs):
     growleeConnection.listen()
Ejemplo n.º 6
0
 def doConnect(*args, **kwargs):
     growleeConnection.listen()