Changeset 9155 for branches/one_window/src/roster_window.py
- Timestamp:
- 12/16/07 01:01:13 (11 months ago)
- Files:
-
- 1 modified
-
branches/one_window/src/roster_window.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/one_window/src/roster_window.py
r9153 r9155 1380 1380 name += '/' + contact.resource 1381 1381 jid_with_resource = contact.jid + '/' + contact.resource 1382 if gajim.interface.msg_win_mgr.has_window(jid_with_resource, 1383 account): 1382 if gajim.interface.msg_win_mgr.has_window(jid_with_resource, account): 1384 1383 win = gajim.interface.msg_win_mgr.get_window(jid_with_resource, 1385 1384 account) … … 2663 2662 mw = gajim.interface.msg_win_mgr.get_window(ctrl.contact.jid, ctrl.account) 2664 2663 if not mw: 2665 mw = gajim.interface.msg_win_mgr.create_window(ctrl.contact, \2664 mw = gajim.interface.msg_win_mgr.create_window(ctrl.contact, 2666 2665 ctrl.account, ctrl.type_id) 2667 2666 ctrl.parent_win = mw … … 4262 4261 gajim.config.set('roster_y-position', y) 4263 4262 width, height = self.window.get_size() 4263 # For the width use the size of the vbox containing the tree and 4264 # status combo, this will cancel out any hpaned width 4265 width = self.xml.get_widget('roster_vbox2').allocation.width 4264 4266 gajim.config.set('roster_width', width) 4265 4267 gajim.config.set('roster_height', height) … … 4399 4401 win.get_control(fjid, account).got_disconnected() 4400 4402 4401 # FIXME: This is probably not the right place for this code. 4402 if (gajim.config.get('one_message_window') == 'always' and 4403 gajim.config.get('one_message_window_with_roster')): 4404 win.window.hide() 4405 hpaned = self.xml.get_widget('roster_hpaned') 4406 notebook = win.xml.get_widget('notebook') 4407 notebook.reparent(hpaned) 4408 hpaned.pack2(notebook, resize=True, shrink=True) 4409 notebook.show_all() 4410 else: 4411 win.window.present() 4403 win.window.present() 4412 4404 4413 4405 def on_row_activated(self, widget, path): … … 5337 5329 self.xml = gtkgui_helpers.get_glade('roster_window.glade') 5338 5330 self.window = self.xml.get_widget('roster_window') 5331 self.hpaned = self.xml.get_widget('roster_hpaned') 5339 5332 self._music_track_changed_signal = None 5340 gajim.interface.msg_win_mgr = MessageWindowMgr( )5333 gajim.interface.msg_win_mgr = MessageWindowMgr(self.window, self.hpaned) 5341 5334 self.advanced_menus = [] # We keep them to destroy them 5342 5335 if gajim.config.get('roster_window_skip_taskbar'):
