comparison frontends/src/quick_frontend/quick_chat.py @ 2022:88c41a195728

primitivus (chat): added :topic (and :subject and :title aliases) to change subject with a dialog (/!\ urwid SàText need to be updated)
author Goffi <goffi@goffi.org>
date Sun, 24 Jul 2016 19:00:50 +0200
parents f67da1cab6d3
children 01aff34e8873
comparison
equal deleted inserted replaced
2021:6c51e8f17c92 2022:88c41a195728
421 421
422 ## Room ## 422 ## Room ##
423 423
424 def setSubject(self, subject): 424 def setSubject(self, subject):
425 """Set title for a group chat""" 425 """Set title for a group chat"""
426 self.subject = subject
427 if self.type != C.CHAT_GROUP: 426 if self.type != C.CHAT_GROUP:
428 raise exceptions.InternalError("trying to set subject for a non group chat window") 427 raise exceptions.InternalError("trying to set subject for a non group chat window")
428 self.subject = subject
429
430 def changeSubject(self, new_subject):
431 """Change the subject of the room
432
433 This change the subject on the room itself (i.e. via XMPP),
434 while setSubject change the subject of this widget
435 """
436 self.host.bridge.mucSubject(unicode(self.target), new_subject, self.profile)
429 437
430 def addGamePanel(self, widget): 438 def addGamePanel(self, widget):
431 """Insert a game panel to this Chat dialog. 439 """Insert a game panel to this Chat dialog.
432 440
433 @param widget (Widget): the game panel 441 @param widget (Widget): the game panel