From 51292d20b3625288b1f50af082a86e3692fe9bd2 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 12 Mar 2008 16:15:06 +0000 Subject: [PATCH] 2008-03-12 Mike Kestner * glib/GType.cs: add an Init method for explicit initialization. svn path=/trunk/gtk-sharp/; revision=98056 --- ChangeLog | 4 ++++ glib/GType.cs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 94c140a7b..3d901868f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-03-12 Mike Kestner + + * glib/GType.cs: add an Init method for explicit initialization. + 2008-03-04 Mike Kestner * bootstrap-2.12: update version to 2.12 and tag diff --git a/glib/GType.cs b/glib/GType.cs index bc7b491c7..36e505987 100755 --- a/glib/GType.cs +++ b/glib/GType.cs @@ -138,6 +138,11 @@ namespace GLib { return LookupType (gtype.Val); } + public static void Init () + { + // cctor already calls g_type_init. + } + public static Type LookupType (IntPtr typeid) { if (types.Contains (typeid))