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

This commit is contained in:
Stephen Boddy 2015-03-02 21:46:32 +01:00
commit ba66f8e2d2

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)