Remove the default_setup function, it's very broken
This commit is contained in:
parent
428f931bf3
commit
326bb4fa94
|
@ -45,8 +45,6 @@ class Window(Container, gtk.Window):
|
||||||
self.register_callbacks()
|
self.register_callbacks()
|
||||||
self.apply_config()
|
self.apply_config()
|
||||||
|
|
||||||
self.default_setup()
|
|
||||||
|
|
||||||
def register_callbacks(self):
|
def register_callbacks(self):
|
||||||
"""Connect the GTK+ signals we care about"""
|
"""Connect the GTK+ signals we care about"""
|
||||||
self.connect('key-press-event', self.on_key_press)
|
self.connect('key-press-event', self.on_key_press)
|
||||||
|
@ -92,15 +90,6 @@ class Window(Container, gtk.Window):
|
||||||
|
|
||||||
self.set_icon(icon)
|
self.set_icon(icon)
|
||||||
|
|
||||||
def default_setup(self):
|
|
||||||
"""Set up the default child widget"""
|
|
||||||
terminal = self.terminator.new_terminal()
|
|
||||||
|
|
||||||
self.add(terminal)
|
|
||||||
terminal.hide_titlebar()
|
|
||||||
self.show()
|
|
||||||
terminal.spawn_child()
|
|
||||||
|
|
||||||
def on_key_press(self, window, event):
|
def on_key_press(self, window, event):
|
||||||
"""Handle a keyboard event"""
|
"""Handle a keyboard event"""
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue