Start working towards a fix for re-appearing scrollbars

This commit is contained in:
Chris Jones 2007-11-29 17:15:27 +00:00
parent f100fa6cfe
commit b6b862cb00
1 changed files with 2 additions and 0 deletions

View File

@ -242,10 +242,12 @@ class TerminatorTerm:
def do_scrollbar_toggle (self):
if self._scrollbar.get_property ('visible'):
self._scrollbar.hide ()
self.scrollbarhide = True
else:
# We need to make the terminal narrower by the width of the scrollbar
self._vte.set_size (self._vte.get_column_count () - int(math.ceil(self._scrollbar.allocation.width / self._vte.get_char_width ())), self._vte.get_row_count ())
self._scrollbar.show ()
self.scrollbarhide = False
def on_vte_key_press (self, term, event):
keyname = gtk.gdk.keyval_name (event.keyval)