From 7da113172c3c5b87526ce113e0dee2df9d933a15 Mon Sep 17 00:00:00 2001 From: Travis Shirk Date: Thu, 19 Jan 2006 03:12:10 +0000 Subject: [PATCH] Resize to default when given bogus sizes --- src/message_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index 81723b0c8..5f7bbb4f5 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -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)'''