diff src/toc.c @ 216:f7e17fb767eb

[gaim-migrate @ 226] Gtk-safe thread-safe code, here we come! Yah! committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 04 May 2000 09:32:51 +0000
parents 89c9334d3484
children fba779cc01f5
line wrap: on
line diff
--- a/src/toc.c	Wed May 03 22:31:49 2000 +0000
+++ b/src/toc.c	Thu May 04 09:32:51 2000 +0000
@@ -647,9 +647,11 @@
 	                for (i--; i >= 0; i--)
 	                        g_free(messages[i]);
                 
+			gdk_threads_enter();
 	                pthread_create(&thread, NULL, 
 				       (void*(*)(void*))accept_file_dialog, ft);
 			pthread_detach(thread);
+			gdk_threads_leave();
 		} else if (!strcmp(uuid, FILE_GET_UID)) {
 			/* we're sending a file */
 	                for (i=0; i<4; i++) {