Author: alanmc
Date: 2007-03-23 07:32:08 -0500 (Fri, 23 Mar 2007)
New Revision: 74870
Modified:
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
Log:
Used other fix for threading, not as nice, but works on older GTK# releases
aswell
Modified:
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
===================================================================
---
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
2007-03-23 12:30:49 UTC (rev 74869)
+++
trunk/bitsharp/src/MonoTorrent.Interface/src/MonoTorrent.Interface/Program.cs
2007-03-23 12:32:08 UTC (rev 74870)
@@ -51,9 +51,10 @@
CreateDirs();
Application.Init();
- // GLib threads need to be initialised before launching the main
application
- if (!GLib.Thread.Supported) {
- GLib.Thread.Init();
+ // GLib threads need to be initialised before launching the main
application
+ // when we don't run on Mono, we need to initialize glib ourself
+ if (Type.GetType("Mono.Runtime") == null)
+ GLib.Thread.Init();
}
private static void CreateDirs()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches