Remove old flag based HAS_FOCUS usage from unused method of terminator class.

This commit is contained in:
Stephen Boddy 2015-03-02 13:16:09 +01:00
parent be6128f7be
commit a980aec7ae
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ class Terminator(Borg):
def get_focussed_terminal(self):
"""iterate over all the terminals to find which, if any, has focus"""
for terminal in self.terminals:
if terminal.flags()&Gtk.HAS_FOCUS:
if terminal.has_focus():
return(terminal)
return(None)