changeset 14261:bb060cdc23d1

[gaim-migrate @ 16943] Get rid of this thread stuff. You can read the whole saga at http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201791 Basically we were working around some complicated library interactions between d-bus and newer, threaded versions of gnome-vfs. But the d-bus guys were awesome enough to make our working around unnecessary I'm seeing the following error printed to the console when I click on on the Send To menu in conversation windows, but I get this error with or without these threading changes. I'm not sure what's up with that. I should point out that our dnsquery.c stuff is calling g_thread_init() for both Unix and Windows now (it didn't used to do that on Unix) The error is: GLib-GObject: gsignal.c:1713: handler `982' of instance `0xc6d960' is not blocked committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 21 Aug 2006 05:07:42 +0000
parents accae094598f
children baff095b146c
files gtk/gtkmain.c libgaim/dbus-server.c
diffstat 2 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkmain.c	Mon Aug 21 04:54:11 2006 +0000
+++ b/gtk/gtkmain.c	Mon Aug 21 05:07:42 2006 +0000
@@ -640,18 +640,6 @@
 	gtk_rc_add_default_file(search_path);
 	g_free(search_path);
 
-#if (defined(G_THREADS_ENABLED) && !defined(G_THREADS_IMPL_NONE))
-	/* Since threads can be yanked in all unawares by other libraries,
-	 * and some libraries aren't smart enough to initialize the thread
-	 * subsystem when they need it, we need to do this here.  We also
-	 * threadify dbus when that gets initialized.  Ugh. */
-	if (!g_thread_supported())
-		g_thread_init(NULL);
-#ifndef _WIN32
-	gdk_threads_init();
-#endif
-#endif /* Glib has threads */
-
 	gui_check = gtk_init_check(&argc, &argv);
 	if (!gui_check) {
 		char *display = gdk_get_display();
--- a/libgaim/dbus-server.c	Mon Aug 21 04:54:11 2006 +0000
+++ b/libgaim/dbus-server.c	Mon Aug 21 05:07:42 2006 +0000
@@ -757,9 +757,6 @@
 void
 gaim_dbus_init(void)
 {
-	if (g_thread_supported())
-		dbus_g_thread_init();
-
 	gaim_dbus_init_ids();
 
 	g_free(init_error);