changeset 2eace08470b1 in /home/hg/repos/gajim
author: lovetox forenjunkie@chelo.at branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=2eace08470b1 description: Restore correct window size in single window mode
diffstat:
src/message_window.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r e64a6f0077ca -r 2eace08470b1 src/message_window.py --- a/src/message_window.py Mon Oct 03 16:35:17 2016 +0200 +++ b/src/message_window.py Mon Oct 03 23:02:23 2016 +0200 @@ -997,16 +997,16 @@ """ Resizes window according to config settings """ + hpaned = gajim.config.get('roster_hpaned_position') if self.mode in (self.ONE_MSG_WINDOW_ALWAYS, self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER): size = (gajim.config.get('msgwin-width'), gajim.config.get('msgwin-height')) if self.mode == self.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: - parent_size = win.window.get_size() # Need to add the size of the now visible paned handle, otherwise # the saved width of the message window decreases by this amount handle_size = win.parent_paned.style_get_property('handle-size') - size = (parent_size[0] + size[0] + handle_size, size[1]) + size = (hpaned + size[0] + handle_size, size[1]) 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')) @@ -1020,7 +1020,7 @@ return win.resize(size[0], size[1]) if win.parent_paned: - win.parent_paned.set_position(gajim.config.get('roster_hpaned_position')) + win.parent_paned.set_position(hpaned)
def _position_window(self, win, acct, type_): """