Remember titlebar setting when zooming. Closes LP #241007

This commit is contained in:
Chris Jones 2008-06-26 01:20:25 +01:00
parent d4e7e8217c
commit ab74d1427a

View File

@ -1658,12 +1658,15 @@ class Terminator:
def toggle_zoom(self, widget, fontscale = False):
if not self._zoomed:
self.zoom_term (widget, fontscale)
if self.conf.titlebars:
widget._titlebars = widget._titlebox.get_property ('visible')
dbg ('toggle_zoom: not zoomed. remembered titlebar setting of %s'%widget._titlebars)
if widget._titlebars:
widget._titlebox.hide()
self.zoom_term (widget, fontscale)
else:
dbg ('toggle_zoom: zoomed. restoring titlebar setting of %s'%widget._titlebars)
self.unzoom_term (widget, True)
if self.conf.titlebars and \
if widget._titlebars and \
len(self.term_list) > 1 \
and \
(isinstance(widget, TerminatorTerm) and isinstance(widget.get_parent(),gtk.Paned))\