2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 13 Apr 2007 12:26:28 +0000 (12:26 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 13 Apr 2007 12:26:28 +0000 (12:26 -0000)
* Theme.cs: Update GetMethod to get the new definition for
KnownColors.Update (and fix theme color updates).

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

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs

index 8603ef52b87a852e8260031aba143a117c77370c..33e9f26f3895d7c46094249839ba1cbdeb146008 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Theme.cs: Update GetMethod to get the new definition for 
+       KnownColors.Update (and fix theme color updates).
+
 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
 
        * MessageBox.cs: Fix some test and button position.
index 0479a0c651946466af4c5b3c6b6cc267c09ecccf..6ccf278d4884c3001f84df487a8ca6544916dd16 100644 (file)
@@ -209,7 +209,7 @@ namespace System.Windows.Forms
                        if (update == null) {
                                Type known_colors = Type.GetType ("System.Drawing.KnownColors, " + Consts.AssemblySystem_Drawing);
                                if (known_colors != null)
-                                       update = known_colors.GetMethod ("UpdateColor", BindingFlags.Static | BindingFlags.NonPublic);
+                                       update = known_colors.GetMethod ("Update", BindingFlags.Static | BindingFlags.Public);
                        }
                        if (update != null)
                                update.Invoke (null, new object [2] { (int)kc, value.ToArgb () });