config is now a borg, so there's no need to pass a reference around. Also fix a config keyerror
This commit is contained in:
parent
f5ee9d54c5
commit
f3d5fa61e4
|
@ -30,11 +30,11 @@ class Window(Container, gtk.Window):
|
||||||
hidebound = None
|
hidebound = None
|
||||||
hidefunc = None
|
hidefunc = None
|
||||||
|
|
||||||
def __init__(self, configobject):
|
def __init__(self):
|
||||||
"""Class initialiser"""
|
"""Class initialiser"""
|
||||||
self.terminator = Terminator()
|
self.terminator = Terminator()
|
||||||
|
|
||||||
Container.__init__(self, configobject)
|
Container.__init__(self)
|
||||||
gtk.Window.__init__(self)
|
gtk.Window.__init__(self)
|
||||||
gobject.type_register(Window)
|
gobject.type_register(Window)
|
||||||
self.register_signals(Window)
|
self.register_signals(Window)
|
||||||
|
@ -72,7 +72,7 @@ class Window(Container, gtk.Window):
|
||||||
def apply_config(self):
|
def apply_config(self):
|
||||||
"""Apply various configuration options"""
|
"""Apply various configuration options"""
|
||||||
self.set_fullscreen(self.config['fullscreen'])
|
self.set_fullscreen(self.config['fullscreen'])
|
||||||
self.set_maximised(self.config['maximised'])
|
self.set_maximised(self.config['maximise'])
|
||||||
self.set_borderless(self.config['borderless'])
|
self.set_borderless(self.config['borderless'])
|
||||||
self.set_real_transparency(self.config['enable_real_transparency'])
|
self.set_real_transparency(self.config['enable_real_transparency'])
|
||||||
if self.hidebound:
|
if self.hidebound:
|
||||||
|
|
Loading…
Reference in New Issue