diff libpurple/protocols/gg/gg-utils.c @ 32737:03a55a2997d1

Gadu-Gadu: Fixed password change dialog and problems with connecting to accounts with non-ASCII passwords. Fixes #14652
author tomkiewicz@cpw.pidgin.im
date Mon, 10 Oct 2011 23:39:33 +0000
parents 1d92b85ef5d9
children
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg-utils.c	Sat Oct 08 23:07:45 2011 +0000
+++ b/libpurple/protocols/gg/gg-utils.c	Mon Oct 10 23:39:33 2011 +0000
@@ -143,5 +143,18 @@
 				    msg ? "message" : NULL, msg, NULL);
 }
 
+guint ggp_http_input_add(struct gg_http *http_req, PurpleInputFunction func,
+	gpointer user_data)
+{
+	PurpleInputCondition cond = 0;
+	int check = http_req->check;
+
+	if (check & GG_CHECK_READ)
+		cond |= PURPLE_INPUT_READ;
+	if (check & GG_CHECK_WRITE)
+		cond |= PURPLE_INPUT_WRITE;
+
+	return purple_input_add(http_req->fd, cond, func, user_data);
+}
 
 /* vim: set ts=8 sts=0 sw=8 noet: */