Changeset 9569 for branches/session_centric/src/chat_control.py
- Timestamp:
- 05/04/08 02:24:27 (4 months ago)
- Files:
-
- 1 modified
-
branches/session_centric/src/chat_control.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/session_centric/src/chat_control.py
r9560 r9569 1587 1587 unread = '[' + unicode(num_unread) + ']' 1588 1588 1589 # Draw tab label using chatstate 1589 # Draw tab label using chatstate 1590 1590 theme = gajim.config.get('roster_theme') 1591 1591 color = None … … 1847 1847 self.contact.our_chatstate = None 1848 1848 1849 # terminate session 1849 1850 self.session.control = None 1850 1851 … … 2078 2079 # Is it a pm ? 2079 2080 room_jid, nick = gajim.get_room_and_nick_from_fjid(jid) 2080 # XXX fixme somehow 2081 # control = gajim.interface.msg_win_mgr.get_control(room_jid, self.account) 2082 # if control and control.type_id == message_control.TYPE_GC: 2083 # control.update_ui() 2084 # control.parent_win.show_title() 2085 # typ = 'pm' 2081 control = gajim.interface.msg_win_mgr.get_gc_control(room_jid, self.account) 2082 if control and control.type_id == message_control.TYPE_GC: 2083 control.update_ui() 2084 control.parent_win.show_title() 2085 typ = 'pm' 2086 2086 2087 2087 self.redraw_after_event_removed(jid) … … 2094 2094 gajim.interface.roster.really_remove_contact(self.contact, 2095 2095 self.account) 2096 #elif typ == 'pm':2097 #control.remove_contact(nick)2096 elif typ == 'pm': 2097 control.remove_contact(nick) 2098 2098 2099 2099 def show_bigger_avatar(self, small_avatar): … … 2141 2141 if gtk.gtk_version >= (2, 10, 0) and gtk.pygtk_version >= (2, 10, 0): 2142 2142 window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_TOOLTIP) 2143 2143 2144 2144 window.realize() 2145 2145 window.window.set_back_pixmap(pixmap, False) # make it transparent 2146 2146 window.window.shape_combine_mask(mask, 0, 0) 2147 2147 2148 # make the bigger avatar window show up centered 2148 # make the bigger avatar window show up centered 2149 2149 x0, y0 = small_avatar.window.get_origin() 2150 2150 x0 += small_avatar.allocation.x … … 2152 2152 center_x= x0 + (small_avatar.allocation.width / 2) 2153 2153 center_y = y0 + (small_avatar.allocation.height / 2) 2154 pos_x, pos_y = center_x - (avatar_w / 2), center_y - (avatar_h / 2) 2154 pos_x, pos_y = center_x - (avatar_w / 2), center_y - (avatar_h / 2) 2155 2155 window.move(pos_x, pos_y) 2156 2156 # make the cursor invisible so we can see the image
