(self)
Updates the list of watched terminals
Updates the list of watched terminals
Updates the list of watched terminals
def update_watched(self):
        """Updates the list of watched terminals"""
        new_watched = set()
        for term in Terminator().terminals:
            new_watched.add(term)
            if not term in self.watched:
                vte = term.get_vte()
                term.connect('focus-out', self.update_watched_delayed, None)
                vte.connect('focus-out-event', self.
                    update_watched_delayed, None)
                notify = vte.connect(
                    'notification-received', self.notification_received, term)
            else:
                notify = None
        self.watched = new_watched
def update_watched ( self ) : new_watched = set ( ) for term in Terminator ( ) . terminals : new_watched . add ( term ) if not term in self . watched : vte = term . get_vte ( ) term . connect ( 'focus-out' , self . update_watched_delayed , None ) vte . connect ( 'focus-out-event' , self . update_watched_delayed , None ) notify = vte . connect ( 'notification-received' , self . notification_received , term ) else : notify = None self . watched = new_watched