From d1b76f0a30640285ab3de697e5f61fbf7e38aa0d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 8 Aug 2005 09:29:34 +0000 Subject: [PATCH] debug() instead of print for pre1 (final will have them removed, also make another check just in case --- src/tabbed_chat_window.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index bcf35855a..17e054689 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -410,6 +410,9 @@ class TabbedChatWindow(chat.Chat): if current_state == False: # jid doesn't support chatstates return False # stop looping + if self.mouse_over_in_last_5_secs or self.kbd_activity_in_last_5_secs: + return True # loop forever + if not (self.mouse_over_in_last_30_secs or\ self.kbd_activity_in_last_30_secs): self.send_chatstate('inactive', contact.jid) @@ -543,8 +546,8 @@ class TabbedChatWindow(chat.Chat): # if the new state we wanna send (state) equals # the current state (contact.chastate) then return - print 'wanna send', state - print 'atm you have', contact.chatstate + gajim.debug.log('wanna send' + state) + gajim.debug.log('atm you have' + contact.chatstate) if contact.chatstate == state: return