This commit is contained in:
Nikos Kouremenos 2005-08-08 15:00:51 +00:00
parent c944035684
commit 21bdf27b9c
2 changed files with 4 additions and 3 deletions

View File

@ -204,7 +204,7 @@ class Interface:
def handle_event_http_auth(self, account, data):
#('HTTP_AUTH', account, (method, url, iq_obj))
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:
answer = 'yes'
else:
@ -367,7 +367,7 @@ class Interface:
(account, array))
# 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
elif old_show > 1 and new_show < 2:
@ -1001,7 +1001,6 @@ class Interface:
self.handle_event_file_send_error)
con.register_handler('STANZA_ARRIVED', self.handle_event_stanza_arrived)
con.register_handler('STANZA_SENT', self.handle_event_stanza_sent)
con.register_handler('HTTP_AUTH', self.handle_event_http_auth)
def process_connections(self):
try:

View File

@ -396,6 +396,7 @@ class TabbedChatWindow(chat.Chat):
if self.mouse_over_in_last_5_secs:
self.send_chatstate('active', jid)
elif self.kbd_activity_in_last_5_secs:
print 'PAUSED sends COMPOSING'
self.send_chatstate('composing', jid)
else:
if self.chatstates[jid] == 'composing':
@ -430,6 +431,7 @@ class TabbedChatWindow(chat.Chat):
def on_message_tv_buffer_insert_text(self, textbuffer, textiter, text,
length, jid):
print 'insert-text'
self.kbd_activity_in_last_5_secs = True
self.kbd_activity_in_last_30_secs = True
self.send_chatstate('composing', jid)