Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_chat.py @ 380:ede26abf6ca1
primitivus: freedesktop notifications (if available) when somebody is talking to us and we have not focus, or our nick is pinged and we have not focus.
This need python-Xlib to work, if it's not present, notification are silently ignored.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 27 Aug 2011 17:15:41 +0200 |
parents | b1794cbb88e5 |
children | e4e9187e3b5b |
comparison
equal
deleted
inserted
replaced
379:adcc41e4d6ea | 380:ede26abf6ca1 |
---|---|
63 | 63 |
64 def setUserNick(self, nick): | 64 def setUserNick(self, nick): |
65 """Set the nick of the user, usefull for e.g. change the color of the user""" | 65 """Set the nick of the user, usefull for e.g. change the color of the user""" |
66 self.nick = nick | 66 self.nick = nick |
67 | 67 |
68 def getUserNick(self): | |
69 return unicode(self.nick) | |
70 | |
68 def removeUser(self, nick): | 71 def removeUser(self, nick): |
69 """Remove a user from the group list""" | 72 """Remove a user from the group list""" |
70 debug(_("Removing user %s") % nick) | 73 debug(_("Removing user %s") % nick) |
71 if self.type != "group": | 74 if self.type != "group": |
72 error (_("[INTERNAL] trying to remove user for a non group chat window")) | 75 error (_("[INTERNAL] trying to remove user for a non group chat window")) |