Author: mkestner
Date: 2007-09-07 10:36:04 -0400 (Fri, 07 Sep 2007)
New Revision: 85479
Modified:
branches/gtk-sharp-2-468-branch/gtk-sharp/ChangeLog
branches/gtk-sharp-2-468-branch/gtk-sharp/glib/Object.cs
Log:
2007-09-07 Mike Kestner <[EMAIL PROTECTED]>
* glib/Object.cs (InvokeClassInitializers): Stop iterating at
GLib.Object, since it doesn't expose any ClassInitializers. Fix
a variable naming style.
Modified: branches/gtk-sharp-2-468-branch/gtk-sharp/ChangeLog
===================================================================
--- branches/gtk-sharp-2-468-branch/gtk-sharp/ChangeLog 2007-09-07 14:22:41 UTC
(rev 85478)
+++ branches/gtk-sharp-2-468-branch/gtk-sharp/ChangeLog 2007-09-07 14:36:04 UTC
(rev 85479)
@@ -1,3 +1,9 @@
+2007-09-07 Mike Kestner <[EMAIL PROTECTED]>
+
+ * glib/Object.cs (InvokeClassInitializers): Stop iterating at
+ GLib.Object, since it doesn't expose any ClassInitializers. Fix
+ a variable naming style.
+
2007-09-07 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* glib/Object.cs: In InvokeClassInitializers, look for initializers
Modified: branches/gtk-sharp-2-468-branch/gtk-sharp/glib/Object.cs
===================================================================
--- branches/gtk-sharp-2-468-branch/gtk-sharp/glib/Object.cs 2007-09-07
14:22:41 UTC (rev 85478)
+++ branches/gtk-sharp-2-468-branch/gtk-sharp/glib/Object.cs 2007-09-07
14:36:04 UTC (rev 85479)
@@ -166,12 +166,12 @@
m.Invoke (null, parms);
}
- for (Type curType = t; curType != typeof(object);
curType = curType.BaseType) {
+ for (Type curr = t; curr != typeof(GLib.Object); curr =
curr.BaseType) {
- if (curType.Assembly.IsDefined (typeof
(IgnoreClassInitializersAttribute), false))
+ if (curr.Assembly.IsDefined (typeof
(IgnoreClassInitializersAttribute), false))
continue;
- foreach (MethodInfo minfo in
curType.GetMethods(flags))
+ foreach (MethodInfo minfo in
curr.GetMethods(flags))
if (minfo.IsDefined (typeof
(ClassInitializerAttribute), true))
minfo.Invoke (null, parms);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches