Author: jpobst
Date: 2007-05-04 16:01:01 -0400 (Fri, 04 May 2007)
New Revision: 76724

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
Log:
2007-05-04  Jonathan Pobst  <[EMAIL PROTECTED]>

        * Control.cs, Form.cs: Fix some obsolete method warnings.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-04 19:54:51 UTC (rev 76723)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-05-04 20:01:01 UTC (rev 76724)
@@ -1,5 +1,9 @@
 2007-05-04  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * Control.cs, Form.cs: Fix some obsolete method warnings.
+
+2007-05-04  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
        * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-05-04 19:54:51 UTC (rev 76723)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2007-05-04 20:01:01 UTC (rev 76724)
@@ -3783,12 +3783,15 @@
                        ScaleCore(dx, dy);
                }
 
+               [EditorBrowsable (EditorBrowsableState.Advanced)]
 #if NET_2_0
-               [EditorBrowsable (EditorBrowsableState.Advanced)]
-               public void Scale(SizeF factor) {
+               public
+#else
+               internal
+#endif
+               void Scale(SizeF factor) {
                        ScaleCore(factor.Width, factor.Height);
                }
-#endif
 
                public void Select() {
                        Select(false, false);   
@@ -4291,7 +4294,7 @@
                        /* Now scale our children */
                        Control [] controls = child_controls.GetAllControls ();
                        for (int i=0; i < controls.Length; i++) {
-                               controls[i].Scale(dx, dy);
+                               controls[i].Scale (new SizeF (dx, dy));
                        }
 
                        ResumeLayout();

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2007-05-04 19:54:51 UTC (rev 76723)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2007-05-04 20:01:01 UTC (rev 76724)
@@ -1638,7 +1638,7 @@
                                dy = 1;
                        }
 
-                       Scale (dx, dy);
+                       Scale (new SizeF (dx, dy));
                        
                        AutoScaleBaseSize = current_size;
                }
@@ -2056,7 +2056,7 @@
                                /* Now scale our children */
                                Control [] controls = Controls.GetAllControls 
();
                                for (int i=0; i < controls.Length; i++) {
-                                       controls[i].Scale(dx, dy);
+                                       controls[i].Scale (new SizeF (dx, dy));
                                }
                        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to