Show
Ignore:
Timestamp:
02/07/07 20:05:23 (22 months ago)
Author:
asterix
Message:

merge diff from trunk

Files:
1 modified

Legend:

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

    r7940 r7949  
    583583                if gajim.config.get('emoticons_theme') and \ 
    584584                possible_emot_ascii_caps in gajim.interface.emoticons.keys(): 
    585                         #it's an emoticon 
     585                        # it's an emoticon 
    586586                        emot_ascii = possible_emot_ascii_caps 
    587587                        end_iter = buffer.get_end_iter() 
    588588                        anchor = buffer.create_child_anchor(end_iter) 
    589589                        img = gtk.Image() 
    590                         img.set_from_file(gajim.interface.emoticons[emot_ascii]) 
     590                        animations = gajim.interface.emoticons_animations 
     591                        if not emot_ascii in animations: 
     592                                animations[emot_ascii] = gtk.gdk.PixbufAnimation( 
     593                                        gajim.interface.emoticons[emot_ascii]) 
     594                        img.set_from_animation(animations[emot_ascii]) 
    591595                        img.show() 
    592                         #add with possible animation 
     596                        # add with possible animation 
    593597                        self.tv.add_child_at_anchor(img, anchor) 
    594598                #FIXME: one day, somehow sync with regexp in gajim.py 
     
    604608                        special_text.startswith('sip:') or \ 
    605609                        special_text.startswith('magnet:'): 
    606                         #it's a url 
     610                        # it's a url 
    607611                        tags.append('url') 
    608612                        use_other_tags = False