diff --git a/Window.py b/Window.py index 9af6adf..cde4b2a 100755 --- a/Window.py +++ b/Window.py @@ -5,8 +5,13 @@ import imaplib class Window(object): def __init__(self, conf): self.conf = conf + if not 'width' in self.conf: + self.conf['width'] = 32 + if not 'height' in self.conf: + self.conf['height'] = 32 self.window = gtk.Window() + self.window.set_default_size(self.conf['width'], self.conf['height']) self.window.set_decorated(False) self.window.connect('destroy', self.destroy_event) self.window.connect('button-release-event', self.button_release)