[banshee] [gio] Initialise GType



commit 05a359c61e7c635b0fbb3ef937106c5120641218
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Thu Mar 18 20:11:58 2010 +1100

    [gio] Initialise GType
    
    GIO requires a call to g_type_init(), without it IO-bound test hang.

 .../Banshee.Gio/Banshee.IO.Gio/Provider.cs         |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Backends/Banshee.Gio/Banshee.IO.Gio/Provider.cs b/src/Backends/Banshee.Gio/Banshee.IO.Gio/Provider.cs
index c6420d2..cbd7d03 100644
--- a/src/Backends/Banshee.Gio/Banshee.IO.Gio/Provider.cs
+++ b/src/Backends/Banshee.Gio/Banshee.IO.Gio/Provider.cs
@@ -32,6 +32,11 @@ namespace Banshee.IO.Gio
 {
     public class Provider : Banshee.IO.IProvider
     {
+        static Provider ()
+        {
+            GLib.GType.Init ();
+        }
+
         public Type FileProvider {
             get { return typeof (File); }
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]