Changeset 7949

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

merge diff from trunk

Location:
branches/gajim_0.11/src
Files:
2 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 
  • branches/gajim_0.11/src/gajim.py

    r7941 r7949  
    15151515                gajim.block_signed_in_notifications[account] = True 
    15161516                self.roster.actions_menu_needs_rebuild = True 
    1517                 if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN and \ 
     1517                if self.sleeper.getState() != common.sleepy.STATE_UNKNOWN and \ 
    15181518                gajim.connections[account].connected in (2, 3): 
    15191519                        # we go online or free for chat, so we activate auto status 
     
    17891789                counter = 0 
    17901790                # Calculate the side lenght of the popup to make it a square 
    1791                 size = int(round(math.sqrt(len(gajim.interface.emoticons_images)))) 
    1792                 for image in gajim.interface.emoticons_images: 
     1791                size = int(round(math.sqrt(len(self.emoticons_images)))) 
     1792                for image in self.emoticons_images: 
    17931793                        item = gtk.MenuItem() 
    17941794                        img = gtk.Image() 
     
    18151815                self.emoticons_images = list() 
    18161816                self.emoticons = dict() 
     1817                self.emoticons_animations = dict() 
    18171818 
    18181819                path = os.path.join(gajim.DATA_DIR, 'emoticons', emot_theme)