Show
Ignore:
Timestamp:
01/13/07 23:35:41 (23 months ago)
Author:
asterix
Message:

merge diff from trunc to 0.11 branch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11/src/chat_control.py

    r7787 r7829  
    9292 
    9393        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() 
    9598                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 
    97103 
    98104        def update_ui(self): 
     
    101107 
    102108        def repaint_themed_widgets(self): 
     109                self._paint_banner() 
    103110                self.draw_banner() 
    104111                # Derived classes MAY implement this 
     
    209216                self.style_event_id = 0 
    210217                self.conv_textview.tv.show() 
     218                self._paint_banner() 
    211219 
    212220                # For JEP-0172 
     
    850858                self.handlers[id] = widget 
    851859 
    852                 self.hide_chat_buttons_always = gajim.config.get( 
     860                hide_chat_buttons_always = gajim.config.get( 
    853861                        '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) 
    855863                self.widget_set_visible(self.xml.get_widget('banner_eventbox'), 
    856864                        gajim.config.get('hide_chat_banner')) 
     
    10121020                self._update_gpg() 
    10131021 
    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.  
    10191025                ''' 
    1020                 ChatControlBase.draw_banner(self) 
    1021  
    10221026                contact = self.contact 
    10231027                jid = contact.jid 
     
    10711075                                else: 
    10721076                                        chatstate = '' 
    1073                         elif chatstate is None: 
     1077                        else: 
     1078                                # When does that happen ? See [7797] and [7804] 
    10741079                                chatstate = helpers.get_uf_chatstate(cs) 
    10751080 
     
    15521557        def handle_incoming_chatstate(self): 
    15531558                ''' handle incoming chatstate that jid SENT TO us ''' 
    1554                 self.draw_banner() 
     1559                self.draw_banner_text() 
    15551560                # update chatstate in tab for this chat 
    15561561                self.parent_win.redraw_tab(self, self.contact.chatstate) 
     
    16501655                                        constants.KIND_CHAT_MSG_RECV): 
    16511656                                kind = 'incoming' 
     1657                                name = self.contact.get_shown_name() 
     1658                        elif row[1] == constants.KIND_ERROR: 
     1659                                kind = 'status' 
    16521660                                name = self.contact.get_shown_name() 
    16531661