save single chat size/position
This commit is contained in:
parent
01e09ce9b1
commit
c1d334c25d
|
@ -95,6 +95,10 @@ class Config:
|
|||
'chat-y-position': [opt_int, 0],
|
||||
'chat-width': [opt_int, 480],
|
||||
'chat-height': [opt_int, 440],
|
||||
'single-x-position': [opt_int, 0],
|
||||
'single-y-position': [opt_int, 0],
|
||||
'single-width': [opt_int, 400],
|
||||
'single-height': [opt_int, 280],
|
||||
'roster_x-position': [ opt_int, 0 ],
|
||||
'roster_y-position': [ opt_int, 0 ],
|
||||
'roster_width': [ opt_int, 150 ],
|
||||
|
|
|
@ -1009,6 +1009,15 @@ class SingleMessageWindow:
|
|||
self.message_tv_buffer.place_cursor(begin_iter)
|
||||
|
||||
self.xml.signal_autoconnect(self)
|
||||
|
||||
if gajim.config.get('saveposition'):
|
||||
# get window position and size from config
|
||||
gtkgui_helpers.move_window(self.window,
|
||||
gajim.config.get('single-x-position'),
|
||||
gajim.config.get('single-y-position'))
|
||||
gtkgui_helpers.resize_window(self.window,
|
||||
gajim.config.get('single-width'),
|
||||
gajim.config.get('single-height'))
|
||||
self.window.show_all()
|
||||
|
||||
def prepare_widgets_for(self, action):
|
||||
|
|
Loading…
Reference in New Issue