diff 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
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py	Sat Aug 27 12:39:51 2011 +0200
+++ b/frontends/src/quick_frontend/quick_chat.py	Sat Aug 27 17:15:41 2011 +0200
@@ -65,6 +65,9 @@
         """Set the nick of the user, usefull for e.g. change the color of the user"""
         self.nick = nick
 
+    def getUserNick(self):
+        return unicode(self.nick)
+
     def removeUser(self, nick):
         """Remove a user from the group list"""
         debug(_("Removing user %s") % nick)