[commit-gajim] r11184 - trunk/src

asterix at gajim.org asterix at gajim.org
Fri Apr 3 20:48:31 CEST 2009


Author: asterix
Date: 2009-04-03 20:48:31 +0200 (Fri, 03 Apr 2009)
New Revision: 11184

Modified:
   trunk/src/systray.py
Log:
[Simon Morgan] don't hide() window when we click on systray, but iconify() it. Fixes #4938


Modified: trunk/src/systray.py
===================================================================
--- trunk/src/systray.py	2009-04-01 13:39:52 UTC (rev 11183)
+++ trunk/src/systray.py	2009-04-03 18:48:31 UTC (rev 11184)
@@ -333,13 +333,13 @@
 				# 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.hide() # else we hide it from VD that was visible in
+					win.iconify() # else we hide it from VD that was visible in
+					win.set_property('skip-taskbar-hint', True)
 			else:
-				# in Windows (perhaps other Window Managers too) minimize state
-				# is remembered, so make sure it's not minimized (iconified)
-				# because user wants to see roster
 				win.deiconify()
-				win.present()
+				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())
 		else:
 			self.handle_first_event()
 



More information about the Commits mailing list