changeset 2a7f8d66f29a in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=2a7f8d66f29a
description: hide() roster instead of iconify() it when clicking on systray. Fixes #5505
diffstat:
src/systray.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (25 lines):
diff -r 59f2af364029 -r 2a7f8d66f29a src/systray.py
--- a/src/systray.py Wed Dec 30 11:06:14 2009 +0100
+++ b/src/systray.py Wed Dec 30 11:10:11 2009 +0100
@@ -326,18 +326,16 @@
win = gajim.interface.roster.window
if len(gajim.events.get_systray_events()) == 0:
# No pending events, so toggle visible/hidden for roster window
- if not win.iconify_initially and (win.get_property(
+ if win..get_property('visible') and (win.get_property(
'has-toplevel-focus') or os.name == 'nt'):
# visible in ANY virtual desktop?
# 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):
- win.set_property('skip-taskbar-hint', False)
- win.iconify() # else we hide it from VD that was visible in
- win.set_property('skip-taskbar-hint', True)
+ win.hide() # else we hide it from VD that was visible in
else:
- win.deiconify()
+ win.show_all()
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())