Changeset 8709 for branches/gajim_0.11.1/src/roster_window.py
- Timestamp:
- 09/04/07 20:32:31 (15 months ago)
- Files:
-
- 1 modified
-
branches/gajim_0.11.1/src/roster_window.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.1/src/roster_window.py
r8707 r8709 3056 3056 self.update_status_combobox() 3057 3057 3058 def new_chat(self, contact, account, private_chat = False, resource = None): 3058 def new_private_chat(self, gc_contact, account): 3059 contact = gajim.contacts.contact_from_gc_contact(gc_contact) 3060 type_ = message_control.TYPE_PM 3061 fjid = gc_contact.room_jid + '/' + gc_contact.name 3062 mw = gajim.interface.msg_win_mgr.get_window(fjid, account) 3063 if not mw: 3064 mw = gajim.interface.msg_win_mgr.create_window(contact, account, type_) 3065 3066 chat_control = PrivateChatControl(mw, gc_contact, contact, account) 3067 mw.new_tab(chat_control) 3068 if len(gajim.events.get_events(account, fjid)): 3069 # We call this here to avoid race conditions with widget validation 3070 chat_control.read_queue() 3071 3072 def new_chat(self, contact, account, resource = None): 3059 3073 # Get target window, create a control, and associate it with the window 3060 if not private_chat: 3061 type_ = message_control.TYPE_CHAT 3062 else: 3063 type_ = message_control.TYPE_PM 3074 type_ = message_control.TYPE_CHAT 3064 3075 3065 3076 fjid = contact.jid … … 3070 3081 mw = gajim.interface.msg_win_mgr.create_window(contact, account, type_) 3071 3082 3072 if not private_chat: 3073 chat_control = ChatControl(mw, contact, account, resource) 3074 else: 3075 chat_control = PrivateChatControl(mw, contact, account) 3083 chat_control = ChatControl(mw, contact, account, resource) 3076 3084 3077 3085 mw.new_tab(chat_control)
