From b6b862cb00ac951f4c72834221d72b89d032a8c1 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 29 Nov 2007 17:15:27 +0000 Subject: [PATCH] Start working towards a fix for re-appearing scrollbars --- terminator | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terminator b/terminator index 442811e3..b233adc6 100755 --- a/terminator +++ b/terminator @@ -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)