[ostree] waitablequeue: Only use API from GLib 2.34



commit 4271f84755e79660bffaa5f1757de62379bd018f
Author: Colin Walters <walters verbum org>
Date:   Wed Apr 3 00:50:16 2013 -0400

    waitablequeue: Only use API from GLib 2.34
    
    As intended.

 src/libotutil/ot-waitable-queue.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/libotutil/ot-waitable-queue.c b/src/libotutil/ot-waitable-queue.c
index 874499d..475c9c2 100644
--- a/src/libotutil/ot-waitable-queue.c
+++ b/src/libotutil/ot-waitable-queue.c
@@ -116,5 +116,8 @@ ot_waitable_queue_unref (OtWaitableQueue *queue)
 GSource *
 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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]