diff src/toc.c @ 217:fba779cc01f5

[gaim-migrate @ 227] Removed the really buggy thread code, and almost got Get File (where gaim sends to Oscar clients) to work. At least they can get a list of files now. Btw, the 2 bytes that were bugging weren't the problem, it was network byte order. I'm stupid sometimes. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 05 May 2000 22:33:38 +0000
parents f7e17fb767eb
children f3b61c04f44e
line wrap: on
line diff
--- a/src/toc.c	Thu May 04 09:32:51 2000 +0000
+++ b/src/toc.c	Fri May 05 22:33:38 2000 +0000
@@ -32,7 +32,6 @@
 #include <stdio.h>
 #include <time.h>
 #include <sys/socket.h>
-#include <pthread.h>
 #include "gaim.h"
 #include "gnome_applet_mgr.h"
 
@@ -608,8 +607,6 @@
 
 		if (!strcmp(uuid, FILE_SEND_UID)) {
 			/* we're getting a file */
-			pthread_t thread;
-
 	                for (i=0; i<4; i++) {
 	                        sscanf(strtok(NULL, ":"), "%d", &unk[i]);
 	                        if (unk[i] == 10001)
@@ -647,11 +644,7 @@
 	                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();
+			accept_file_dialog(ft);
 		} else if (!strcmp(uuid, FILE_GET_UID)) {
 			/* we're sending a file */
 	                for (i=0; i<4; i++) {