Support --geometry

This commit is contained in:
Chris Jones 2010-01-05 12:58:05 +00:00
parent 1625326838
commit 266b662923
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ class Window(Container, gtk.Window):
if role is not None: if role is not None:
self.set_role(role) self.set_role(role)
if geometry is not None:
if not self.parse_geometry(geometry):
err('Window::__init__: Unable to parse geometry: %s' % geometry)
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)