Fix an invalid call to get_child() rather than the correct get_children()[0] for a window.

This commit is contained in:
Stephen Boddy 2017-02-18 21:30:17 +01:00
parent 0aeaf5ce80
commit 31c3b2e9f4

View File

@ -1182,7 +1182,7 @@ class Terminal(Gtk.VBox):
def ensure_visible_and_focussed(self):
"""Make sure that we're visible and focussed"""
window = self.get_toplevel()
topchild = window.get_child()
topchild = window.get_children()[0]
maker = Factory()
if maker.isinstance(topchild, 'Notebook'):