re-order these to make more sense
This commit is contained in:
parent
84b984dc0c
commit
201e48c9be
24
terminator
24
terminator
|
@ -576,7 +576,7 @@ class TerminatorTerm:
|
||||||
return self._box
|
return self._box
|
||||||
|
|
||||||
class Terminator:
|
class Terminator:
|
||||||
def __init__ (self, profile, command = None):
|
def __init__ (self, profile, command = None, fullscreen = False, maximise = False, borderless = False):
|
||||||
self.profile = profile
|
self.profile = profile
|
||||||
self.gconf_client = gconf.client_get_default ()
|
self.gconf_client = gconf.client_get_default ()
|
||||||
self.command = command
|
self.command = command
|
||||||
|
@ -599,6 +599,15 @@ class Terminator:
|
||||||
|
|
||||||
self.window.set_property ('allow-shrink', True)
|
self.window.set_property ('allow-shrink', True)
|
||||||
|
|
||||||
|
if fullscreen:
|
||||||
|
self.fullscreen_toggle ()
|
||||||
|
|
||||||
|
if maximise:
|
||||||
|
self.maximize ()
|
||||||
|
|
||||||
|
if borderless:
|
||||||
|
self.window.set_decorated (False)
|
||||||
|
|
||||||
# Set RGBA colormap if possible so VTE can use real alpha
|
# Set RGBA colormap if possible so VTE can use real alpha
|
||||||
# channels for transparency.
|
# channels for transparency.
|
||||||
screen = self.window.get_screen()
|
screen = self.window.get_screen()
|
||||||
|
@ -895,18 +904,7 @@ if __name__ == '__main__':
|
||||||
del (gconf)
|
del (gconf)
|
||||||
gconf = fakegconf ()
|
gconf = fakegconf ()
|
||||||
|
|
||||||
term = Terminator (options.profile, command)
|
term = Terminator (options.profile, command, options.fullscreen, options.maximise, options.borderless)
|
||||||
|
|
||||||
# Set the Terminator in fullscreen state or maximize it.
|
|
||||||
# Fullscreen and maximise are mutually exclusive, with
|
|
||||||
# fullscreen taking precedence over maximise.
|
|
||||||
if options.fullscreen:
|
|
||||||
term.toggle_fullscreen ()
|
|
||||||
elif options.maximise:
|
|
||||||
term.maximize ()
|
|
||||||
|
|
||||||
if options.borderless:
|
|
||||||
term.window.set_decorated (False)
|
|
||||||
|
|
||||||
gtk.main ()
|
gtk.main ()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue