Author: toshok
Date: 2006-09-26 13:18:51 -0400 (Tue, 26 Sep 2006)
New Revision: 65927
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
2006-09-26 Chris Toshok <[EMAIL PROTECTED]>
* Control.cs (ControlCollection.AddImplicit): don't add the
control again if it's already in one of our lists. This keeps us
from adding controls over and over again for comboboxes when their
handle gets recreated (as the combobox adds implicit controls in
OnHandleCreated). Fixes the X11 errors in bug #79480.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-09-26 16:49:20 UTC (rev 65926)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-09-26 17:18:51 UTC (rev 65927)
@@ -1,3 +1,11 @@
+2006-09-26 Chris Toshok <[EMAIL PROTECTED]>
+
+ * Control.cs (ControlCollection.AddImplicit): don't add the
+ control again if it's already in one of our lists. This keeps us
+ from adding controls over and over again for comboboxes when their
+ handle gets recreated (as the combobox adds implicit controls in
+ OnHandleCreated). Fixes the X11 errors in bug #79480.
+
2006-09-26 Jackson Harper <[EMAIL PROTECTED]>
* TextControl.cs: When deleting characters make sure that any
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 16:49:20 UTC (rev 65926)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2006-09-26 17:18:51 UTC (rev 65927)
@@ -356,6 +356,10 @@
{
if (impl_list == null)
impl_list = new ArrayList ();
+
+ if (AllContains (control))
+ return;
+
all_controls = null;
impl_list.Add (control);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches