Allow controlling borderless/maximise/fullscreen options via config stores
This commit is contained in:
parent
485cdf545e
commit
400479c8e7
|
@ -874,13 +874,13 @@ class Terminator:
|
|||
|
||||
self.window.set_property ('allow-shrink', True)
|
||||
|
||||
if fullscreen:
|
||||
if fullscreen or self.conf.fullscreen:
|
||||
self.fullscreen_toggle ()
|
||||
|
||||
if maximise:
|
||||
if maximise or self.conf.maximise:
|
||||
self.maximize ()
|
||||
|
||||
if borderless:
|
||||
if borderless or self.conf.borderless:
|
||||
self.window.set_decorated (False)
|
||||
|
||||
# Set RGBA colormap if possible so VTE can use real alpha
|
||||
|
@ -989,6 +989,7 @@ class Terminator:
|
|||
"""
|
||||
vertical = pos in ("top", "bottom")
|
||||
pane = (vertical) and gtk.VPaned () or gtk.HPaned ()
|
||||
pane.handle_size = 1
|
||||
|
||||
# get the parent of the provided terminal
|
||||
parent = widget.get_parent ()
|
||||
|
|
|
@ -115,6 +115,9 @@ class TerminatorConfValuestore:
|
|||
'active_encodings' : ['UTF-8', 'ISO-8859-1'],
|
||||
'background_image' : '',
|
||||
'extreme_tabs' : False,
|
||||
'fullscreen' : False,
|
||||
'borderless' : False,
|
||||
'maximise' : False,
|
||||
}
|
||||
|
||||
def __getattr__ (self, keyname):
|
||||
|
|
Loading…
Reference in New Issue