Prevent splitting while a terminal is maximised/zoomed. Closes LP #558330

This commit is contained in:
Chris Jones 2010-04-09 12:38:33 +01:00
parent 29015d7969
commit 71e6acd6e4
1 changed files with 4 additions and 0 deletions

View File

@ -311,6 +311,10 @@ class Window(Container, gtk.Window):
def split_axis(self, widget, vertical=True, cwd=None, sibling=None, widgetfirst=True):
"""Split the window"""
if self.get_property('term_zoomed') == True:
err("You can't split while a terminal is maximised/zoomed")
return
order = None
maker = Factory()
self.remove(widget)