changeset dafdbbb3bb90 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=dafdbbb3bb90
description: save and restore roster position when we click on systray icon. Fixes #5196
diffstat:
src/systray.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 2e755978ad69 -r dafdbbb3bb90 src/systray.py
--- a/src/systray.py Thu Feb 18 22:05:07 2010 +0100
+++ b/src/systray.py Fri Feb 19 09:48:22 2010 +0100
@@ -333,9 +333,15 @@
# we could be in another VD right now. eg vd2
# and we want to show it in vd2
if not gtkgui_helpers.possibly_move_window_in_current_desktop(win):
+ x, y = win.get_position()
+ gajim.config.set('roster_x-position', x)
+ gajim.config.set('roster_y-position', y)
win.hide() # else we hide it from VD that was visible in
else:
- win.show_all()
+ if not win.get_property('visible'):
+ win.show_all()
+ win.move(gajim.config.get('roster_x-position'),
+ gajim.config.get('roster_y-position'))
if not gajim.config.get('roster_window_skip_taskbar'):
win.set_property('skip-taskbar-hint', False)
win.present_with_time(gtk.get_current_event_time())
changeset 89ee1d10d853 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=89ee1d10d853
description: prevent traceback when destroy handler already clean self.instances[account]['online_dialog'] dict. Fixes #5604
diffstat:
src/gajim.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 05c45bb18950 -r 89ee1d10d853 src/gajim.py
--- a/src/gajim.py Tue Feb 16 09:44:23 2010 +0100
+++ b/src/gajim.py Tue Feb 16 10:41:16 2010 +0100
@@ -612,7 +612,9 @@
# .keys() is needed to not have a dictionary length changed during
# iteration error
self.instances[account]['online_dialog'][name].destroy()
- del self.instances[account]['online_dialog'][name]
+ if name in self.instances[account]['online_dialog']:
+ # destroy handler may have already removed it
+ del self.instances[account]['online_dialog'][name]
for request in self.gpg_passphrase.values():
if request:
request.interrupt()