Author: js Date: 2008-11-23 20:23:21 +0100 (Sun, 23 Nov 2008) New Revision: 10690
Modified: trunk/src/message_window.py Log: [killerfox] Show chatstate in title if no tabs left
Modified: trunk/src/message_window.py =================================================================== --- trunk/src/message_window.py 2008-11-23 19:17:58 UTC (rev 10689) +++ trunk/src/message_window.py 2008-11-23 19:23:21 UTC (rev 10690) @@ -452,6 +452,9 @@ label = None elif self.get_num_controls() == 1: label = name + state = control.contact.chatstate + if state and bool(len(state)): + label = '%s (%s)' % (label, state.capitalize()) else: label = _('Messages')
@@ -579,6 +582,8 @@ else: status_img.set_from_pixbuf(tab_img.get_pixbuf())
+ self.show_title() + def repaint_themed_widgets(self): '''Repaint controls in the window with theme color''' # iterate through controls and repaint