changeset 11065:8e97c8befc0b

[gaim-migrate @ 13046] keeping up with the joneses. I mean oldstatus committer: Tailor Script <tailor@pidgin.im>
author Christopher O'Brien <siege@pidgin.im>
date Thu, 07 Jul 2005 15:40:35 +0000
parents e4459e8ccfb5
children 2507d20c3d0b
files src/gtkeventloop.c
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkeventloop.c	Thu Jul 07 02:47:49 2005 +0000
+++ b/src/gtkeventloop.c	Thu Jul 07 15:40:35 2005 +0000
@@ -58,7 +58,21 @@
 			   closure->result, g_io_channel_unix_get_fd(source));
 #endif
 
-	closure->function(closure->data, g_io_channel_unix_get_fd(source), gaim_cond);
+#ifdef _WIN32
+	if(! gaim_cond) {
+#if DEBUG
+		gaim_debug(GAIM_DEBUG_MISC, "gtk_eventloop",
+			   "CLOSURE received GIOCondition of 0x%x, which does not"
+			   " match 0x%x (READ) or 0x%x (WRITE)\n",
+			   condition, GAIM_GTK_READ_COND, GAIM_GTK_WRITE_COND);
+#endif /* DEBUG */
+
+		return TRUE;
+	}
+#endif /* _WIN32 */
+
+	closure->function(closure->data, g_io_channel_unix_get_fd(source),
+			  gaim_cond);
 
 	return TRUE;
 }