Support the background scrolling aspect of backgrounds too

This commit is contained in:
Chris Jones 2008-01-06 03:25:54 +00:00
parent 28eeb0e14d
commit 93e6c017c6
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class TerminatorTerm:
'font_name' : 'Serif 10', 'font_name' : 'Serif 10',
'foreground_color' : '#AAAAAA', 'foreground_color' : '#AAAAAA',
'scrollbar' : True, 'scrollbar' : True,
'scroll_background' : True,
'scroll_on_keystroke' : False, 'scroll_on_keystroke' : False,
'scroll_on_output' : False, 'scroll_on_output' : False,
'scrollback_lines' : 100, 'scrollback_lines' : 100,
@ -230,6 +231,7 @@ class TerminatorTerm:
self._vte.set_background_transparent (False) self._vte.set_background_transparent (False)
if background_type == "image": if background_type == "image":
self._vte.set_background_image_file (self.gconf_client.get_string (self.profile + "/background_image") or self.defaults['background_image']) self._vte.set_background_image_file (self.gconf_client.get_string (self.profile + "/background_image") or self.defaults['background_image'])
self._vte.set_scroll_background (self.gconf_client.get_bool (self.profile + "/scroll_background") or self.defaults['scroll_background'])
self._vte.set_background_transparent (False) self._vte.set_background_transparent (False)
if background_type == "transparent": if background_type == "transparent":
self._vte.set_background_transparent (True) self._vte.set_background_transparent (True)