Author: everaldo
Date: 2007-03-26 04:57:40 -0500 (Mon, 26 Mar 2007)
New Revision: 74969
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
Log:
* NotifyIcon.cs: On disposing verify if icon is visible and hide it,
it prevents a problem thak keeps icon visible after application
closes on win32.
2007-03-26 Everaldo Canuto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-26 09:08:02 UTC (rev 74968)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-03-26 09:57:40 UTC (rev 74969)
@@ -1,5 +1,11 @@
2007-03-26 Everaldo Canuto <[EMAIL PROTECTED]>
+ * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
+ it prevents a problem thak keeps icon visible after application
+ closes on win32.
+
+2007-03-26 Everaldo Canuto <[EMAIL PROTECTED]>
+
* NotifyIcon.cs: Balloon properties and methods created.
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
2007-03-26 09:08:02 UTC (rev 74968)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
2007-03-26 09:57:40 UTC (rev 74969)
@@ -483,6 +483,9 @@
#region Protected Instance Methods
protected override void Dispose(bool disposing) {
+ if (visible)
+ HideSystray();
+
if (icon_bitmap != null) {
icon_bitmap.Dispose();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches