Mercurial > pidgin.yaz
diff src/gtkeventloop.c @ 8280:084ed9f7ac19
[gaim-migrate @ 9004]
Soem tweaks from Scott Lamb for the event loop code.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 17 Feb 2004 08:43:44 +0000 |
parents | f24172f53650 |
children | ef881489396e |
line wrap: on
line diff
--- a/src/gtkeventloop.c Tue Feb 17 06:16:49 2004 +0000 +++ b/src/gtkeventloop.c Tue Feb 17 08:43:44 2004 +0000 @@ -63,7 +63,7 @@ return TRUE; } -static gint gaim_gtk_input_add(gint source, GaimInputCondition condition, GaimInputFunction function, +static guint gaim_gtk_input_add(gint fd, GaimInputCondition condition, GaimInputFunction function, gpointer data) { GaimGtkIOClosure *closure = g_new0(GaimGtkIOClosure, 1); @@ -78,21 +78,21 @@ if (condition & GAIM_INPUT_WRITE) cond |= GAIM_GTK_WRITE_COND; - channel = g_io_channel_unix_new(source); + channel = g_io_channel_unix_new(fd); closure->result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond, gaim_gtk_io_invoke, closure, gaim_gtk_io_destroy); #if 0 gaim_debug(GAIM_DEBUG_MISC, "gtk_eventloop", "CLOSURE: adding input watcher %d for fd %d\n", - closure->result, source); + closure->result, fd); #endif g_io_channel_unref(channel); return closure->result; } -static void gaim_gtk_input_remove(gint tag) +static void gaim_gtk_input_remove(guint tag) { /* gaim_debug(GAIM_DEBUG_MISC, "proxy", "CLOSURE: removing input watcher %d\n", tag); */