From 5a78e29465b4b488985a246e5f81093316b5c3a3 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Fri, 2 Jun 2006 21:49:13 +0000 Subject: [PATCH] Also save width and height separetly for chats and gc when ONE_MSG_WINDOW_NEVER --- src/message_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/message_window.py b/src/message_window.py index be1585a24..8cca9ab3a 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -641,13 +641,13 @@ class MessageWindowMgr: if not gajim.config.get('saveposition'): return - if self.mode in (self.ONE_MSG_WINDOW_NEVER, self.ONE_MSG_WINDOW_ALWAYS): + if self.mode == self.ONE_MSG_WINDOW_ALWAYS: size = (gajim.config.get('msgwin-width'), gajim.config.get('msgwin-height')) elif self.mode == self.ONE_MSG_WINDOW_PERACCT: size = (gajim.config.get_per('accounts', acct, 'msgwin-width'), gajim.config.get_per('accounts', acct, 'msgwin-height')) - elif self.mode == self.ONE_MSG_WINDOW_PERTYPE: + elif self.mode in (self.ONE_MSG_WINDOW_NEVER, self.ONE_MSG_WINDOW_PERTYPE): if type == message_control.TYPE_PM: type = message_control.TYPE_CHAT opt_width = type + '-msgwin-width' @@ -705,6 +705,7 @@ class MessageWindowMgr: win_type = type win_role = type elif self.mode == self.ONE_MSG_WINDOW_NEVER: + win_type = type win_role = contact.jid win = None @@ -792,6 +793,10 @@ class MessageWindowMgr: pos_y_key = type + '-msgwin-y-position' size_width_key = type + '-msgwin-width' size_height_key = type + '-msgwin-height' + elif self.mode == self.ONE_MSG_WINDOW_NEVER: + type = msg_win.type + size_width_key = type + '-msgwin-width' + size_height_key = type + '-msgwin-height' if acct: gajim.config.set_per('accounts', acct, size_width_key, width)