Skip to content
Snippets Groups Projects
Commit eda58198 authored by nkour's avatar nkour
Browse files

remove has_focus var and focus_out cb that are not needed

parent cc260e37
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ def redraw_tab(self, contact, chatstate = None):
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 @@ def on_history_menuitem_clicked(self, widget = None, jid = None):
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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment