Resize to default when given bogus sizes

This commit is contained in:
Travis Shirk 2006-01-19 03:12:10 +00:00
parent d46180751b
commit 7da113172c
1 changed files with 4 additions and 0 deletions

View File

@ -607,6 +607,10 @@ class MessageWindowMgr:
gajim.config.get(opt_height))
if size[0] > 0 and size[1] > 0:
gtkgui_helpers.resize_window(win.window, size[0], size[1])
else:
gtkgui_helpers.resize_window(win.window,
(common.config.DEFAULT_WINDOW_WIDTH,
common.config.DEFAULT_WINDOW_HEIGHT))
def _position_window(self, win, acct, type):
'''Returns the position tuple: (x, y)'''