Author: toshok
Date: 2006-11-07 14:12:19 -0500 (Tue, 07 Nov 2006)
New Revision: 67482
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
Log:
2006-11-07 Chris Toshok <[EMAIL PROTECTED]>
* ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
pass a unit test. Also, don't set image_index to anything in
response to setting the ImageList property.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
2006-11-07 18:52:45 UTC (rev 67481)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
2006-11-07 19:12:19 UTC (rev 67482)
@@ -133,6 +133,7 @@
image = null;
image_list = null;
image_alignment = ContentAlignment.MiddleCenter;
+ ime_mode = ImeMode.Disable;
text_alignment = ContentAlignment.MiddleCenter;
is_default = false;
is_entered = false;
@@ -233,9 +234,6 @@
if (image != null) {
image=null;
}
- if (image_list.Images.Count >=
image_index) {
-
image_index=image_list.Images.Count-1;
- }
}
Redraw();
}
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-07 18:52:45 UTC (rev 67481)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-07 19:12:19 UTC (rev 67482)
@@ -1,3 +1,9 @@
+2006-11-07 Chris Toshok <[EMAIL PROTECTED]>
+
+ * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
+ pass a unit test. Also, don't set image_index to anything in
+ response to setting the ImageList property.
+
2006-11-07 Everaldo Canuto <[EMAIL PROTECTED]>
* ToolBar.cs: Ignore click events when mouse button is not a
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches