Changeset 9153
- Timestamp:
- 12/15/07 21:41:46 (9 months ago)
- Files:
-
- 1 modified
-
branches/one_window/src/roster_window.py (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/one_window/src/roster_window.py
r9145 r9153 4 4 ## Copyright (C) 2003-2007 Yann Leboulanger <asterix@lagaule.org> 5 5 ## Copyright (C) 2005-2007 Nikos Kouremenos <kourem@gmail.com> 6 ## Travis Shirk <travis@pobox.com> 6 7 ## Copyright (C) 2005-2006 Dimitur Kirov <dkirov@gmail.com> 7 8 ## Copyright (C) 2007 Lukas Petrovicky <lukas@petrovicky.net> … … 3086 3087 execute_command_menuitem.connect('activate', 3087 3088 self.on_execute_command, contact, account) 3088 3089 start_chat_menuitem.connect('activate', 3089 3090 start_chat_menuitem.connect('activate', 3090 3091 self.on_new_chat_menuitem_activate, account) 3091 3092 … … 4151 4152 else: 4152 4153 gajim.interface.instances['file_transfers'].window.show_all() 4153 4154 4154 4155 def on_history_menuitem_activate(self, widget): 4155 4156 if gajim.interface.instances.has_key('logs'): … … 4398 4399 win.get_control(fjid, account).got_disconnected() 4399 4400 4400 if gajim.config.get('one_message_window') == 'always': 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')): 4401 4404 win.window.hide() 4402 4405 hpaned = self.xml.get_widget('roster_hpaned') 4403 notebook = win.xml.get_widget('notebook') 4406 notebook = win.xml.get_widget('notebook') 4404 4407 notebook.reparent(hpaned) 4405 4408 hpaned.pack2(notebook, resize=True, shrink=True) … … 4995 4998 for g in old_groups: 4996 4999 self.draw_group(g, account_source) 4997 self.draw_account(account_source) 5000 self.draw_account(account_source) 4998 5001 context.finish(True, True, etime) 4999 5002 … … 5067 5070 if position == gtk.TREE_VIEW_DROP_BEFORE and len(path_dest) == 2: 5068 5071 # dropped before a group: we drop it in the previous group every time 5069 path_dest = (path_dest[0], path_dest[1]-1) 5072 path_dest = (path_dest[0], path_dest[1]-1) 5070 5073 # destination: the row something got dropped on 5071 5074 iter_dest = model.get_iter(path_dest) … … 5121 5124 dialog.popup() 5122 5125 return 5123 5126 5124 5127 # a roster entry was dragged and dropped somewhere in the roster 5125 5128 … … 5129 5132 type_source = model[iter_source][C_TYPE] 5130 5133 account_source = model[iter_source][C_ACCOUNT].decode('utf-8') 5131 5134 5132 5135 # Only normal contacts can be dragged 5133 if type_source != 'contact': 5136 if type_source != 'contact': 5134 5137 return 5135 5138 if gajim.config.get_per('accounts', account_source, 'is_zeroconf'): … … 5181 5184 # Drop on self 5182 5185 return 5183 5186 5184 5187 # contact drop somewhere in or on a foreign account 5185 5188 if (type_dest == 'account' or not self.regroup) and \ … … 5189 5192 user_nick = c_source.name, group = grp_dest) 5190 5193 return 5191 5194 5192 5195 # we may not add contacts from special_groups 5193 5196 if grp_source in helpers.special_groups : … … 5203 5206 is_big_brother, context, etime, grp_source) 5204 5207 return 5205 5208 5206 5209 # Contact drop on another contact, make meta contacts 5207 5210 if position == gtk.TREE_VIEW_DROP_INTO_OR_AFTER or \ … … 5313 5316 self.xml.get_widget('roster_window').add_accel_group(accels) 5314 5317 prefs_item.add_accelerator('activate', accels, ord(','), 5315 gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)5318 gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE) 5316 5319 app_menu.append(prefs_item) 5317 5320 app_menu.append(gtk.MenuItem('__SKIP__'))
