vastly improve scrollbar handling

This commit is contained in:
Chris Jones 2008-04-07 23:50:01 +01:00
parent 881d9e9d0d
commit 5f5d01a003
1 changed files with 4 additions and 11 deletions

View File

@ -278,17 +278,10 @@ class TerminatorTerm:
self._scrollbar.hide () self._scrollbar.hide ()
else: else:
self._scrollbar.show () self._scrollbar.show ()
if self.scrollbar_position == 'right': if self.scrollbar_position == 'right':
self._box.remove (self._scrollbar) self._termbox.reorder_child (self._vte, 0)
self._box.remove (self._vte) elif self.scrollbar_position == 'left':
self._box.pack_start (self._vte) self._termbox.reorder_child (self._scrollbar, 0)
self._box.pack_start (self._scrollbar)
elif self.scrollbar_position == 'left':
self._box.remove (self._vte)
self._box.remove (self._scrollbar)
self._box.pack_start(self._scrollbar)
self._box.pack_start(self._vte)
# Set our sloppiness # Set our sloppiness
self.focus = self.conf.focus self.focus = self.conf.focus