[Mono-patches] r98056 - in trunk/gtk-sharp: . glib

Mike Kestner mono-patches-list at lists.ximian.com
Wed Mar 12 12:15:06 EDT 2008


Author: mkestner
Date: 2008-03-12 11:15:06 -0500 (Wed, 12 Mar 2008)
New Revision: 98056

Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/glib/GType.cs
Log:

2008-03-12  Mike Kestner  <mkestner at novell.com>

	* glib/GType.cs: add an Init method for explicit initialization.


Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog	2008-03-12 16:01:09 UTC (rev 98055)
+++ trunk/gtk-sharp/ChangeLog	2008-03-12 16:15:06 UTC (rev 98056)
@@ -1,3 +1,7 @@
+2008-03-12  Mike Kestner  <mkestner at novell.com>
+
+	* glib/GType.cs: add an Init method for explicit initialization.
+
 2008-03-04  Mike Kestner  <mkestner at novell.com>
 
 	* bootstrap-2.12: update version to 2.12 and tag

Modified: trunk/gtk-sharp/glib/GType.cs
===================================================================
--- trunk/gtk-sharp/glib/GType.cs	2008-03-12 16:01:09 UTC (rev 98055)
+++ trunk/gtk-sharp/glib/GType.cs	2008-03-12 16:15:06 UTC (rev 98056)
@@ -138,6 +138,11 @@
 			return LookupType (gtype.Val);
 		}
 
+		public static void Init ()
+		{
+			// cctor already calls g_type_init.
+		}
+
 		public static Type LookupType (IntPtr typeid)
 		{
 			if (types.Contains (typeid))



More information about the Mono-patches mailing list