Remove old flag based HAS_FOCUS usage from unused method of terminator class.
This commit is contained in:
parent
be6128f7be
commit
a980aec7ae
|
@ -462,7 +462,7 @@ class Terminator(Borg):
|
||||||
def get_focussed_terminal(self):
|
def get_focussed_terminal(self):
|
||||||
"""iterate over all the terminals to find which, if any, has focus"""
|
"""iterate over all the terminals to find which, if any, has focus"""
|
||||||
for terminal in self.terminals:
|
for terminal in self.terminals:
|
||||||
if terminal.flags()&Gtk.HAS_FOCUS:
|
if terminal.has_focus():
|
||||||
return(terminal)
|
return(terminal)
|
||||||
return(None)
|
return(None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue