* TreeNode.cs:
authorJackson Harper <jackson@novell.com>
Wed, 15 Dec 2004 23:55:29 +0000 (23:55 -0000)
committerJackson Harper <jackson@novell.com>
Wed, 15 Dec 2004 23:55:29 +0000 (23:55 -0000)
* TreeView.cs: Fix build on csc (second time today ;-))

svn path=/trunk/mcs/; revision=37816

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeNode.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs

index aaebeb37d47a87d28f4d228b9e48153e8f00f8d9..c5d47e876205f0499fb39875ecbd1503d94af619 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-15  Jackson Harper  <jackson@ximian.com>
+
+       * TreeNode.cs:
+       * TreeView.cs: Fix build on csc (second time today ;-))
+
 2004-12-15  Jackson Harper  <jackson@ximian.com>
 
        * TreeView.cs: Store the treenodes plus/minus box bounds when it
index 5f8353fe311b92330fcf5367e809f29861b1e1f4..9fd8c7133146d5a0337505995f37274b554471c3 100644 (file)
@@ -140,6 +140,10 @@ namespace System.Windows.Forms {
                        get { return bounds; }
                }
 
+                public Rectangle PlusMinusBounds {
+                        get { return plus_minus_bounds; }
+                }
+
                public bool Checked {
                        get { return check; }
                        set { check = value; }
index 2f87b9b4cb4dab3091e98dc0459f423abeffc271..1a445c30ecff1507965742b01a72e2e6362ba8fe 100644 (file)
@@ -803,7 +803,7 @@ namespace System.Windows.Forms {
                        int half_height = ItemHeight / 2;
                        while (walk.MoveNext ()) {
                                TreeNode node = (TreeNode) walk.Current;
-                               if (node.plus_minus_bounds.Contains (e.X, e.Y)) {
+                               if (node.PlusMinusBounds.Contains (e.X, e.Y)) {
                                        node.Toggle ();
                                        break;
                                }