Fixing some titlebars bugs in Zoom/UnZoom

Also refocus on the terminal after zoom/unzoom
This commit is contained in:
Emmanuel Bretelle 2008-06-07 14:56:30 +01:00
parent 4a74f74897
commit b4d84d577d
2 changed files with 20 additions and 1 deletions

7
TODO
View File

@ -1 +1,8 @@
* Edit doc/terminatorrc.5 manpage to contain the information about the options * Edit doc/terminatorrc.5 manpage to contain the information about the options
* menu entry/keybinding to hightlight a term upon:
* command ending
* new text in window
* when a command exits, "window-title-changed" is emitted
even though the actual title string do not change
* text-modified could be used to spy on outputs from the command

View File

@ -1039,7 +1039,8 @@ class Terminator:
""" """
vertical = pos in ("top", "bottom") vertical = pos in ("top", "bottom")
pane = (vertical) and gtk.VPaned () or gtk.HPaned () pane = (vertical) and gtk.VPaned () or gtk.HPaned ()
pane.handle_size = 1 #pane.handle_size = 1
# get the parent of the provided terminal # get the parent of the provided terminal
parent = widget.get_parent () parent = widget.get_parent ()
@ -1542,8 +1543,19 @@ class Terminator:
def toggle_zoom(self, widget): def toggle_zoom(self, widget):
if not self._zoomed: if not self._zoomed:
self.zoom_term (widget) self.zoom_term (widget)
if self.conf.titlebars:
widget._titlebox.hide()
widget._vte.grab_focus()
else: else:
self.unzoom_term (widget) self.unzoom_term (widget)
if self.conf.titlebars and \
(\
len(self.term_list) > 1 \
or \
(isinstance(widget, TerminatorTerm) and isinstance(widget.get_parent(),gtk.Notebook))\
):
widget._titlebox.show()
widget._vte.grab_focus()
def zoom_term (self, widget): def zoom_term (self, widget):
"""Proof of concept: Maximize to full window """Proof of concept: Maximize to full window