fix indentation (no space in indentation)

This commit is contained in:
Yann Leboulanger 2006-01-11 07:07:45 +00:00
parent a6e633d7d5
commit a89be870a7
2 changed files with 7 additions and 7 deletions

View File

@ -1503,11 +1503,11 @@ class GroupchatControl(ChatControlBase):
def on_info(self, widget, nick):
'''Call vcard_information_window class to display user's information'''
c = gajim.contacts.get_gc_contact(self.account, self.room_jid, nick)
c2 = gajim.contacts.contact_from_gc_contact(c)
if gajim.interface.instances[self.account]['infos'].has_key(c2.jid):
gajim.interface.instances[self.account]['infos'][c2.jid].window.present()
c2 = gajim.contacts.contact_from_gc_contact(c)
if gajim.interface.instances[self.account]['infos'].has_key(c2.jid):
gajim.interface.instances[self.account]['infos'][c2.jid].window.present()
else:
gajim.interface.instances[self.account]['infos'][c2.jid] = \
gajim.interface.instances[self.account]['infos'][c2.jid] = \
vcard.VcardWindow(c2, self.account, False)
def on_history(self, widget, ck):

View File

@ -102,12 +102,12 @@ class Systray:
def start_chat(self, widget, account, jid):
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
if gajim.interface.msg_win_mgr.has_window(jid):
gajim.interface.msg_win_mgr.get_window(jid).set_active_tab(jid)
gajim.interface.msg_win_mgr.get_window(jid).present()
gajim.interface.msg_win_mgr.get_window(jid).set_active_tab(jid)
gajim.interface.msg_win_mgr.get_window(jid).present()
elif contact:
gajim.interface.roster.new_chat(gajim.contacts[account][jid][0],
account)
gajim.interface.msg_win_mgr.get_window(jid).set_active_tab(jid)
gajim.interface.msg_win_mgr.get_window(jid).set_active_tab(jid)
def on_new_message_menuitem_activate(self, widget, account):
"""When new message menuitem is activated: