waitablequeue: Only use API from GLib 2.34

As intended.
This commit is contained in:
Colin Walters 2013-04-03 00:50:16 -04:00
parent 9cbae4f2fd
commit 4271f84755
1 changed files with 4 additions and 1 deletions

View File

@ -116,5 +116,8 @@ ot_waitable_queue_unref (OtWaitableQueue *queue)
GSource * GSource *
ot_waitable_queue_create_source (OtWaitableQueue *queue) ot_waitable_queue_create_source (OtWaitableQueue *queue)
{ {
return g_unix_fd_source_new (queue->fd, G_IO_IN); GIOChannel *iochan = g_io_channel_unix_new (queue->fd);
GSource *source = g_io_create_watch (iochan, G_IO_IN);
g_io_channel_unref (iochan);
return source;
} }