2009-05-05 Mike Kestner <mkestner@novell.com>

* glib/GType.cs: ensure threading is initialized in cctor.
	* gtk/Application.cs: ditto.

svn path=/trunk/gtk-sharp/; revision=133585
This commit is contained in:
Mike Kestner 2009-05-05 15:15:46 +00:00
parent 9233c9f11a
commit 26362ced64
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-05-05 Mike Kestner <mkestner@novell.com>
* glib/GType.cs: ensure threading is initialized in cctor.
* gtk/Application.cs: ditto.
2009-05-04 Christian Hoff <christian_hoff@gmx.net>
* generator/ClassField.cs: Derive from StructField.

View File

@ -99,6 +99,9 @@ namespace GLib {
static GType ()
{
if (!GLib.Thread.Supported)
GLib.Thread.Init ();
g_type_init ();
Register (GType.Char, typeof (sbyte));

View File

@ -33,6 +33,12 @@ namespace Gtk {
{
}
static Application ()
{
if (!GLib.Thread.Supported)
GLib.Thread.Init ();
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_init (ref int argc, ref IntPtr argv);