Changeset 9560 for branches/session_centric/src/groupchat_control.py
- Timestamp:
- 05/03/08 02:10:17 (7 months ago)
- Files:
-
- 1 modified
-
branches/session_centric/src/groupchat_control.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/session_centric/src/groupchat_control.py
r9556 r9560 122 122 def __init__(self, parent_win, gc_contact, contact, account, session): 123 123 room_jid = contact.jid.split('/')[0] 124 room_ctrl = gajim.interface.msg_win_mgr.get_ control(room_jid, account)124 room_ctrl = gajim.interface.msg_win_mgr.get_gc_control(room_jid, account) 125 125 if gajim.interface.minimized_controls[account].has_key(room_jid): 126 126 room_ctrl = gajim.interface.minimized_controls[account][room_jid] … … 449 449 if color_name: 450 450 color = gtk.gdk.colormap_get_system().alloc_color(color_name) 451 451 452 452 label_str = self.name 453 453 454 454 # count waiting highlighted messages 455 455 unread = '' … … 605 605 606 606 # We print if window is opened 607 pm_control = gajim.interface.msg_win_mgr.get_control(fjid, self.account) 607 pm_control = gajim.interface.msg_win_mgr.get_control(fjid, self.account, session) 608 608 609 if pm_control: 609 610 pm_control.print_conversation(msg, tim = tim, xhtml = xhtml) 611 610 612 return 611 613 … … 884 886 def on_send_pm(self, widget = None, model = None, iter = None, nick = None, 885 887 msg = None): 886 '''opens a chat window and msg is not None sends private message to a888 '''opens a chat window and if msg is not None sends private message to a 887 889 contact in a room''' 888 890 if nick is None: … … 1604 1606 # Update pm chat window 1605 1607 fjid = self.room_jid + '/' + nick 1606 ctrl = gajim.interface.msg_win_mgr.get_ control(fjid, self.account)1608 ctrl = gajim.interface.msg_win_mgr.get_gc_control(fjid, self.account) 1607 1609 if ctrl: 1608 1610 contact = gajim.contacts.get_gc_contact(self.account, self.room_jid, nick) … … 2034 2036 gajim.interface.roster.new_private_chat(gc_c, self.account) 2035 2037 win = gajim.interface.msg_win_mgr.get_window(nick_jid, self.account) 2036 win.set_active_tab(nick_jid, self.account) 2038 2039 ctrl = win.get_controls(nick_jid, self.account)[0] 2040 2041 win.set_active_tab(ctrl) 2037 2042 win.window.present() 2038 2043
