def _buddy_status_changed(self): if check_destroyed(self): return if self.convo.ischat: return # if the buddy's online status changes, we may need to add/remove the # Files button self.capsbar.ApplyCaps(self.Buddy) # if we're showing the buddy's status orb in the tab/window title, # update those icons now. if self.icontype == 'status': self.update_icon()
def _buddy_status_changed(self): if check_destroyed(self): return if self.convo.ischat: return # if the buddy's online status changes, we may need to add/remove the # Files button self.capsbar.ApplyCaps(self.Buddy) # if we're showing the buddy's status orb in the tab/window title, # update those icons now. if self.icontype == "status": self.update_icon()
def on_xfer(self, xfers, *a): if check_destroyed(self): return log.info('ENABLE/DISABLE cleanup button: %r' % xfers) self.cleanup.Enable(bool(self.xferlist))