Fix roster size(gajim in one window mode) in fullscreen mode and in tiling wm. Fixes #7315

This commit is contained in:
Denis Fomin 2013-03-10 22:18:53 +04:00
parent b3b21c357c
commit 14b84cb498
3 changed files with 3 additions and 1 deletions

View File

@ -162,6 +162,7 @@ class Config:
'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 ],

View File

@ -999,7 +999,7 @@ class MessageWindowMgr(gobject.GObject):
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_):
"""

View File

@ -4491,6 +4491,7 @@ class RosterWindow:
if gparamspec.name == 'position':
roster_width = pane.get_child1().allocation.width
gajim.config.set('roster_width', roster_width)
gajim.config.set('roster_hpaned_position', pane.get_position())
################################################################################
### Drag and Drop handling