When removing a Notebook, make sure focus goes to a terminal. Closes LP #558375

This commit is contained in:
Chris Jones 2010-04-11 15:31:42 +01:00
parent 4b1b58544e
commit 463ea45d3a
1 changed files with 3 additions and 0 deletions

View File

@ -321,6 +321,9 @@ class Notebook(Container, gtk.Notebook):
self.cnxids.remove_all()
parent.add(child)
del(self)
# Find the last terminal in the new parent and give it focus
terms = parent.get_visible_terminals()
terms.keys()[-1].grab_focus()
class TabLabel(gtk.HBox):
"""Class implementing a label widget for Notebook tabs"""