changed nxvl's changes: grab_focus should be called on the widget

anytime we zoom/unzoom, this can be done in toggle_zoom
This commit is contained in:
Emmanuel Bretelle 2008-06-07 15:03:44 +01:00
commit cac4852ee9
1 changed files with 2 additions and 2 deletions

View File

@ -1545,7 +1545,6 @@ class Terminator:
self.zoom_term (widget) self.zoom_term (widget)
if self.conf.titlebars: if self.conf.titlebars:
widget._titlebox.hide() widget._titlebox.hide()
widget._vte.grab_focus()
else: else:
self.unzoom_term (widget) self.unzoom_term (widget)
if self.conf.titlebars and \ if self.conf.titlebars and \
@ -1555,7 +1554,7 @@ class Terminator:
(isinstance(widget, TerminatorTerm) and isinstance(widget.get_parent(),gtk.Notebook))\ (isinstance(widget, TerminatorTerm) and isinstance(widget.get_parent(),gtk.Notebook))\
): ):
widget._titlebox.show() widget._titlebox.show()
widget._vte.grab_focus() 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
@ -1584,6 +1583,7 @@ class Terminator:
self.old_parent.set_current_page(self.old_page) self.old_parent.set_current_page(self.old_page)
print "\nPARENT IS A NOTEBOOK\n" print "\nPARENT IS A NOTEBOOK\n"
self._zoomed = False self._zoomed = False
return return
else: else:
return return