[Commits] gtkutils.c 1.5.2.104 1.5.2.105

colin at claws-mail.org colin at claws-mail.org
Thu Nov 8 12:42:29 CET 2012


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv6985/src/gtk

Modified Files:
      Tag: gtk2
	gtkutils.c 
Log Message:
2012-11-08 [colin]	3.8.1cvs116

	* src/common/socket.c
	* src/gtk/gtkutils.c
		Fix socket communication

Index: gtkutils.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkutils.c,v
retrieving revision 1.5.2.104
retrieving revision 1.5.2.105
diff -u -d -r1.5.2.104 -r1.5.2.105
--- gtkutils.c	7 Jul 2012 07:09:35 -0000	1.5.2.104
+++ gtkutils.c	8 Nov 2012 11:42:27 -0000	1.5.2.105
@@ -1646,10 +1646,14 @@
 	         gpointer      data)
 {
   ClawsIOClosure *closure = data;
-
+  int fd;
+#ifndef G_OS_WIN32
+  fd = g_io_channel_unix_get_fd (source);
+#else
+  fd = g_io_channel_win32_get_fd (source);
+#endif
   if (closure->condition & condition)
-    closure->function (closure->data, g_io_channel_unix_get_fd (source),
-    		       condition);
+    closure->function (closure->data, fd, condition);
 
   return TRUE;
 }



More information about the Commits mailing list