changeset c995bc356322 in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=c995bc356322 description: Fix roster size(gajim in one window mode) in fullscreen mode and in tiling wm. Fixes #7315
diffstat:
src/common/config.py | 1 + src/message_window.py | 2 +- src/roster_window.py | 1 + 3 files changed, 3 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 28d3d13390c3 -r c995bc356322 src/common/config.py --- a/src/common/config.py Sun Feb 10 18:57:25 2013 +0100 +++ b/src/common/config.py Sun Mar 10 22:18:53 2013 +0400 @@ -162,6 +162,7 @@ 'roster_y-position': [ opt_int, 0 ], 'roster_width': [ opt_int, 200 ], 'roster_height': [ opt_int, 400 ], + 'roster_hpaned_position': [opt_int, 200], 'history_window_width': [ opt_int, 650 ], 'history_window_height': [ opt_int, 450 ], 'history_window_x-position': [ opt_int, 0 ], diff -r 28d3d13390c3 -r c995bc356322 src/message_window.py --- a/src/message_window.py Sun Feb 10 18:57:25 2013 +0100 +++ b/src/message_window.py Sun Mar 10 22:18:53 2013 +0400 @@ -1005,7 +1005,7 @@ return win.resize(size[0], size[1]) if win.parent_paned: - win.parent_paned.set_position(parent_size[0]) + win.parent_paned.set_position(gajim.config.get('roster_hpaned_position'))
def _position_window(self, win, acct, type_): """ diff -r 28d3d13390c3 -r c995bc356322 src/roster_window.py --- a/src/roster_window.py Sun Feb 10 18:57:25 2013 +0100 +++ b/src/roster_window.py Sun Mar 10 22:18:53 2013 +0400 @@ -4505,6 +4505,7 @@ if gparamspec and gparamspec.name == 'position': roster_width = pane.get_child1().get_allocation().width gajim.config.set('roster_width', roster_width) + gajim.config.set('roster_hpaned_position', pane.get_position())
################################################################################ ### Drag and Drop handling