Fix an invalid call to get_child() rather than the correct get_children()[0] for a window.
This commit is contained in:
parent
0aeaf5ce80
commit
31c3b2e9f4
|
@ -1182,7 +1182,7 @@ class Terminal(Gtk.VBox):
|
||||||
def ensure_visible_and_focussed(self):
|
def ensure_visible_and_focussed(self):
|
||||||
"""Make sure that we're visible and focussed"""
|
"""Make sure that we're visible and focussed"""
|
||||||
window = self.get_toplevel()
|
window = self.get_toplevel()
|
||||||
topchild = window.get_child()
|
topchild = window.get_children()[0]
|
||||||
maker = Factory()
|
maker = Factory()
|
||||||
|
|
||||||
if maker.isinstance(topchild, 'Notebook'):
|
if maker.isinstance(topchild, 'Notebook'):
|
||||||
|
|
Loading…
Reference in New Issue