From eda58198e28f2437eb8f83a1144bf18bfcbd72a0 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 5 Sep 2005 00:00:17 +0000 Subject: [PATCH] remove has_focus var and focus_out cb that are not needed --- src/chat.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/chat.py b/src/chat.py index bad5b8729..85de83007 100644 --- a/src/chat.py +++ b/src/chat.py @@ -190,7 +190,7 @@ class Chat: if chatstate == 'composing': color = gajim.config.get_per('themes', theme, 'state_composing_color') - elif unread and self.has_focus: + elif unread and self.window.get_property('has-toplevel-focus'):: color = gajim.config.get_per('themes', theme, 'state_active_color') elif unread: @@ -267,12 +267,8 @@ class Chat: self.plugin.windows['logs'][jid] = history_window.HistoryWindow( self.plugin, jid, self.account) - def on_chat_window_focus_out_event(self, widget, event): - self.has_focus = False - def on_chat_window_focus_in_event(self, widget, event): """When window gets focus""" - self.has_focus = True jid = self.get_active_jid() textview = self.xmls[jid].get_widget('conversation_textview')