fix typo
This commit is contained in:
parent
c944035684
commit
21bdf27b9c
|
@ -204,7 +204,7 @@ class Interface:
|
||||||
def handle_event_http_auth(self, account, data):
|
def handle_event_http_auth(self, account, data):
|
||||||
#('HTTP_AUTH', account, (method, url, iq_obj))
|
#('HTTP_AUTH', account, (method, url, iq_obj))
|
||||||
dialog = dialogs.ConfirmationDialog(_('HTTP (%s) Authorization for %s') \
|
dialog = dialogs.ConfirmationDialog(_('HTTP (%s) Authorization for %s') \
|
||||||
% (data[0], data[1]), _('Do you accept this request?'))
|
% (array[0], array[1]), _('Do you accept this request?'))
|
||||||
if dialog.get_response() == gtk.RESPONSE_OK:
|
if dialog.get_response() == gtk.RESPONSE_OK:
|
||||||
answer = 'yes'
|
answer = 'yes'
|
||||||
else:
|
else:
|
||||||
|
@ -367,7 +367,7 @@ class Interface:
|
||||||
(account, array))
|
(account, array))
|
||||||
|
|
||||||
# when contact signs out we reset his chatstate
|
# when contact signs out we reset his chatstate
|
||||||
contact = gajim.get_first_contact_instance_from_jid(acccount, jid)
|
contact = gajim.get_first_contact_instance_from_jid(account, jid)
|
||||||
contact.chatstate = None
|
contact.chatstate = None
|
||||||
|
|
||||||
elif old_show > 1 and new_show < 2:
|
elif old_show > 1 and new_show < 2:
|
||||||
|
@ -1001,7 +1001,6 @@ class Interface:
|
||||||
self.handle_event_file_send_error)
|
self.handle_event_file_send_error)
|
||||||
con.register_handler('STANZA_ARRIVED', self.handle_event_stanza_arrived)
|
con.register_handler('STANZA_ARRIVED', self.handle_event_stanza_arrived)
|
||||||
con.register_handler('STANZA_SENT', self.handle_event_stanza_sent)
|
con.register_handler('STANZA_SENT', self.handle_event_stanza_sent)
|
||||||
con.register_handler('HTTP_AUTH', self.handle_event_http_auth)
|
|
||||||
|
|
||||||
def process_connections(self):
|
def process_connections(self):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -396,6 +396,7 @@ class TabbedChatWindow(chat.Chat):
|
||||||
if self.mouse_over_in_last_5_secs:
|
if self.mouse_over_in_last_5_secs:
|
||||||
self.send_chatstate('active', jid)
|
self.send_chatstate('active', jid)
|
||||||
elif self.kbd_activity_in_last_5_secs:
|
elif self.kbd_activity_in_last_5_secs:
|
||||||
|
print 'PAUSED sends COMPOSING'
|
||||||
self.send_chatstate('composing', jid)
|
self.send_chatstate('composing', jid)
|
||||||
else:
|
else:
|
||||||
if self.chatstates[jid] == 'composing':
|
if self.chatstates[jid] == 'composing':
|
||||||
|
@ -430,6 +431,7 @@ class TabbedChatWindow(chat.Chat):
|
||||||
|
|
||||||
def on_message_tv_buffer_insert_text(self, textbuffer, textiter, text,
|
def on_message_tv_buffer_insert_text(self, textbuffer, textiter, text,
|
||||||
length, jid):
|
length, jid):
|
||||||
|
print 'insert-text'
|
||||||
self.kbd_activity_in_last_5_secs = True
|
self.kbd_activity_in_last_5_secs = True
|
||||||
self.kbd_activity_in_last_30_secs = True
|
self.kbd_activity_in_last_30_secs = True
|
||||||
self.send_chatstate('composing', jid)
|
self.send_chatstate('composing', jid)
|
||||||
|
|
Loading…
Reference in New Issue