[commit-gajim] r11192 - trunk/src

asterix at gajim.org asterix at gajim.org
Sun Apr 5 19:35:05 CEST 2009


Author: asterix
Date: 2009-04-05 19:35:05 +0200 (Sun, 05 Apr 2009)
New Revision: 11192

Modified:
   trunk/src/systray.py
Log:
use iconify_initially to know if window has been iconified (works under linux and windows). Fixes #4938


Modified: trunk/src/systray.py
===================================================================
--- trunk/src/systray.py	2009-04-05 17:09:01 UTC (rev 11191)
+++ trunk/src/systray.py	2009-04-05 17:35:05 UTC (rev 11192)
@@ -326,13 +326,14 @@
 		win = gajim.interface.roster.window
 		if len(gajim.events.get_systray_events()) == 0:
 			# No pending events, so toggle visible/hidden for roster window
-			if win.get_property('visible') and (win.get_property(
+			if not win.iconify_initially 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)
 			else:



More information about the Commits mailing list