Start working towards a fix for re-appearing scrollbars
This commit is contained in:
parent
f100fa6cfe
commit
b6b862cb00
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue