When removing a Notebook, make sure focus goes to a terminal. Closes LP #558375
This commit is contained in:
parent
4b1b58544e
commit
463ea45d3a
@ -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"""
|
||||
|
Loading…
Reference in New Issue
Block a user