Changeset 7949 for branches/gajim_0.11/src
- Timestamp:
- 02/07/07 20:05:23 (19 months ago)
- Location:
- branches/gajim_0.11/src
- Files:
-
- 2 modified
-
conversation_textview.py (modified) (2 diffs)
-
gajim.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11/src/conversation_textview.py
r7940 r7949 583 583 if gajim.config.get('emoticons_theme') and \ 584 584 possible_emot_ascii_caps in gajim.interface.emoticons.keys(): 585 # it's an emoticon585 # it's an emoticon 586 586 emot_ascii = possible_emot_ascii_caps 587 587 end_iter = buffer.get_end_iter() 588 588 anchor = buffer.create_child_anchor(end_iter) 589 589 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]) 591 595 img.show() 592 # add with possible animation596 # add with possible animation 593 597 self.tv.add_child_at_anchor(img, anchor) 594 598 #FIXME: one day, somehow sync with regexp in gajim.py … … 604 608 special_text.startswith('sip:') or \ 605 609 special_text.startswith('magnet:'): 606 # it's a url610 # it's a url 607 611 tags.append('url') 608 612 use_other_tags = False -
branches/gajim_0.11/src/gajim.py
r7941 r7949 1515 1515 gajim.block_signed_in_notifications[account] = True 1516 1516 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 \ 1518 1518 gajim.connections[account].connected in (2, 3): 1519 1519 # we go online or free for chat, so we activate auto status … … 1789 1789 counter = 0 1790 1790 # 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: 1793 1793 item = gtk.MenuItem() 1794 1794 img = gtk.Image() … … 1815 1815 self.emoticons_images = list() 1816 1816 self.emoticons = dict() 1817 self.emoticons_animations = dict() 1817 1818 1818 1819 path = os.path.join(gajim.DATA_DIR, 'emoticons', emot_theme)
