fix indentation (no space in indentation)
This commit is contained in:
parent
a6e633d7d5
commit
a89be870a7
|
@ -1503,11 +1503,11 @@ class GroupchatControl(ChatControlBase):
|
||||||
def on_info(self, widget, nick):
|
def on_info(self, widget, nick):
|
||||||
'''Call vcard_information_window class to display user's information'''
|
'''Call vcard_information_window class to display user's information'''
|
||||||
c = gajim.contacts.get_gc_contact(self.account, self.room_jid, nick)
|
c = gajim.contacts.get_gc_contact(self.account, self.room_jid, nick)
|
||||||
c2 = gajim.contacts.contact_from_gc_contact(c)
|
c2 = gajim.contacts.contact_from_gc_contact(c)
|
||||||
if gajim.interface.instances[self.account]['infos'].has_key(c2.jid):
|
if gajim.interface.instances[self.account]['infos'].has_key(c2.jid):
|
||||||
gajim.interface.instances[self.account]['infos'][c2.jid].window.present()
|
gajim.interface.instances[self.account]['infos'][c2.jid].window.present()
|
||||||
else:
|
else:
|
||||||
gajim.interface.instances[self.account]['infos'][c2.jid] = \
|
gajim.interface.instances[self.account]['infos'][c2.jid] = \
|
||||||
vcard.VcardWindow(c2, self.account, False)
|
vcard.VcardWindow(c2, self.account, False)
|
||||||
|
|
||||||
def on_history(self, widget, ck):
|
def on_history(self, widget, ck):
|
||||||
|
|
|
@ -102,12 +102,12 @@ class Systray:
|
||||||
def start_chat(self, widget, account, jid):
|
def start_chat(self, widget, account, jid):
|
||||||
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
|
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
|
||||||
if gajim.interface.msg_win_mgr.has_window(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).set_active_tab(jid)
|
||||||
gajim.interface.msg_win_mgr.get_window(jid).present()
|
gajim.interface.msg_win_mgr.get_window(jid).present()
|
||||||
elif contact:
|
elif contact:
|
||||||
gajim.interface.roster.new_chat(gajim.contacts[account][jid][0],
|
gajim.interface.roster.new_chat(gajim.contacts[account][jid][0],
|
||||||
account)
|
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):
|
def on_new_message_menuitem_activate(self, widget, account):
|
||||||
"""When new message menuitem is activated:
|
"""When new message menuitem is activated:
|
||||||
|
|
Loading…
Reference in New Issue