From a7560f456754bcebda988b0bf2cecc319bb61c3d Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 3 Jul 2003 01:48:31 +0000 Subject: 2003-06-29 Havoc Pennington * mono/Test.cs (class Test): fire up a main loop and run it * mono/DBus.cs (DBus): don't g_thread_init since it can only be done once, the app has to do it 2003-06-26 Havoc Pennington * mono/Connection.cs: set up connection with the glib main loop --- mono/DBus.cs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'mono/DBus.cs') diff --git a/mono/DBus.cs b/mono/DBus.cs index f6f8b003..377af742 100644 --- a/mono/DBus.cs +++ b/mono/DBus.cs @@ -15,19 +15,10 @@ namespace DBus { internal const string GThreadname = "libgthread-2.0.so.0"; internal static void Init () { - if (!initialized) { - initialized = true; - g_thread_init (IntPtr.Zero); dbus_gthread_init (); - } } - - private static bool initialized = false; [DllImport (DBus.Internals.DBusGLibname, EntryPoint="dbus_gthread_init")] private extern static void dbus_gthread_init (); - - [DllImport (DBus.Internals.GThreadname, EntryPoint="g_thread_init")] - private extern static void g_thread_init (IntPtr vtable); } } -- cgit