[Mono-bugs] [Bug 81668][Min] Changed - Properties on NotifyIcon are ordering sensitive

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 22 18:26:34 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by georgegiolfan at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81668

--- shadow/81668	2007-07-18 11:54:45.000000000 -0400
+++ shadow/81668.tmp.23822	2007-08-22 18:26:34.000000000 -0400
@@ -49,6 +49,16 @@
 http://msdn2.microsoft.com/en-us/library/ms229006(VS.80).aspx:
     DO allow properties to be set in any order even if this results in a 
 temporary invalid object state.
 
 ------- Additional Comments From everaldo at simios.org  2007-07-18 11:54 -------
 *** Bug 81559 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From georgegiolfan at yahoo.com  2007-08-22 18:26 -------
+Maybe this happens because setting Visible to true calls ShowSystray 
+which calls XplatUI.SystrayAdd only if icon is not null (which does 
+not happen in this case). Setting Icon then calls UpdateSystray which 
+calls XplatUI.SystrayChange. A quick fix that seems to work is to 
+call XplatUI.SystrayAdd in UpdateSystray if it has not been called in 
+ShowSystray. If this kind of solution is acceptable I can check the 
+exact behavior of Shell_NotifyIcon and make sure this is good on 
+Windows and then see how the other platforms work.


More information about the mono-bugs mailing list