Changeset 7829 for branches/gajim_0.11/src/chat_control.py
- Timestamp:
- 01/13/07 23:35:41 (23 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11/src/chat_control.py (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11/src/chat_control.py
r7787 r7829 92 92 93 93 def draw_banner(self): 94 self._paint_banner() 94 '''Draw the fat line at the top of the window that 95 houses the icon, jid, ... 96 ''' 97 self.draw_banner_text() 95 98 self._update_banner_state_image() 96 # Derived types SHOULD implement this 99 # Derived types MAY implement this 100 101 def draw_banner_text(self): 102 pass # Derived types SHOULD implement this 97 103 98 104 def update_ui(self): … … 101 107 102 108 def repaint_themed_widgets(self): 109 self._paint_banner() 103 110 self.draw_banner() 104 111 # Derived classes MAY implement this … … 209 216 self.style_event_id = 0 210 217 self.conv_textview.tv.show() 218 self._paint_banner() 211 219 212 220 # For JEP-0172 … … 850 858 self.handlers[id] = widget 851 859 852 self.hide_chat_buttons_always = gajim.config.get(860 hide_chat_buttons_always = gajim.config.get( 853 861 'always_hide_chat_buttons') 854 self.chat_buttons_set_visible( self.hide_chat_buttons_always)862 self.chat_buttons_set_visible(hide_chat_buttons_always) 855 863 self.widget_set_visible(self.xml.get_widget('banner_eventbox'), 856 864 gajim.config.get('hide_chat_banner')) … … 1012 1020 self._update_gpg() 1013 1021 1014 def draw_banner(self, chatstate = None): 1015 '''Draw the fat line at the top of the window that 1016 houses the status icon, name, jid. The chatstate arg should 1017 only be used if the control's chatstate member is NOT to be use, such as 1018 composing, paused, etc. 1022 def draw_banner_text(self): 1023 '''Draw the text in the fat line at the top of the window that 1024 houses the name, jid. 1019 1025 ''' 1020 ChatControlBase.draw_banner(self)1021 1022 1026 contact = self.contact 1023 1027 jid = contact.jid … … 1071 1075 else: 1072 1076 chatstate = '' 1073 elif chatstate is None: 1077 else: 1078 # When does that happen ? See [7797] and [7804] 1074 1079 chatstate = helpers.get_uf_chatstate(cs) 1075 1080 … … 1552 1557 def handle_incoming_chatstate(self): 1553 1558 ''' handle incoming chatstate that jid SENT TO us ''' 1554 self.draw_banner ()1559 self.draw_banner_text() 1555 1560 # update chatstate in tab for this chat 1556 1561 self.parent_win.redraw_tab(self, self.contact.chatstate) … … 1650 1655 constants.KIND_CHAT_MSG_RECV): 1651 1656 kind = 'incoming' 1657 name = self.contact.get_shown_name() 1658 elif row[1] == constants.KIND_ERROR: 1659 kind = 'status' 1652 1660 name = self.contact.get_shown_name() 1653 1661
