Author: toshok
Date: 2006-09-26 16:08:30 -0400 (Tue, 26 Sep 2006)
New Revision: 65932
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
* Control.cs (ChildNeedsRecreating): this should return true if
either we're being recreated and the child is in our list, or our
parent is waiting for our recreation.
2006-09-26 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-09-26 18:46:34 UTC (rev 65931)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-09-26 20:08:30 UTC (rev 65932)
@@ -1,5 +1,11 @@
2006-09-26 Chris Toshok <[EMAIL PROTECTED]>
+ * Control.cs (ChildNeedsRecreating): this should return true if
+ either we're being recreated and the child is in our list, or our
+ parent is waiting for our recreation.
+
+2006-09-26 Chris Toshok <[EMAIL PROTECTED]>
+
* Control.cs (ControlCollection.Remove): reinstate the
value.Hide() call as suggested in bug #79294.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-09-26 18:46:34 UTC (rev 65931)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-09-26 20:08:30 UTC (rev 65932)
@@ -889,7 +889,9 @@
internal bool ChildNeedsRecreating (Control child)
{
- return children_to_recreate != null &&
children_to_recreate.Contains (child);
+ if (children_to_recreate != null &&
children_to_recreate.Contains (child))
+ return true;
+ return ParentWaitingOnRecreation (this);
}
internal void RemoveChildFromRecreateList (Control child)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches