mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 01:27:01 +00:00
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:
parent
9233c9f11a
commit
26362ced64
|
@ -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>
|
2009-05-04 Christian Hoff <christian_hoff@gmx.net>
|
||||||
|
|
||||||
* generator/ClassField.cs: Derive from StructField.
|
* generator/ClassField.cs: Derive from StructField.
|
||||||
|
|
|
@ -99,6 +99,9 @@ namespace GLib {
|
||||||
|
|
||||||
static GType ()
|
static GType ()
|
||||||
{
|
{
|
||||||
|
if (!GLib.Thread.Supported)
|
||||||
|
GLib.Thread.Init ();
|
||||||
|
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
Register (GType.Char, typeof (sbyte));
|
Register (GType.Char, typeof (sbyte));
|
||||||
|
|
|
@ -33,6 +33,12 @@ namespace Gtk {
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Application ()
|
||||||
|
{
|
||||||
|
if (!GLib.Thread.Supported)
|
||||||
|
GLib.Thread.Init ();
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||||
static extern void gtk_init (ref int argc, ref IntPtr argv);
|
static extern void gtk_init (ref int argc, ref IntPtr argv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue