Re: [Vala] Adding a GIOChannel to GMainLoop
- From: Jürg Billeter <j bitron ch>
- To: Xavier Bestel <xavier bestel free fr>
- Cc: vala paldo org
- Subject: Re: [Vala] Adding a GIOChannel to GMainLoop
- Date: Wed, 24 Oct 2007 16:11:50 +0200
On Wed, 2007-10-24 at 15:44 +0200, Xavier Bestel wrote:
Hi,
I have a GMainLoop (= new MainLoop(null, false)) and I wanted to add a
GIOChannel to that loop. In C I'd have written g_io_add_watch(), but I
can't find the equivalent in Vala. Could someone help me please ?
That's also still missing in the bindings.
This should work when added to the IOChannel class in glib-2.0.vapi:
[CCode (cname = "g_io_add_watch")]
public uint add_watch (IOCondition condition, IOFunc func, pointer
user_data);
Also add the following line after the IOChannel class:
public static delegate bool IOFunc (IOChannel source, IOCondition
condition, pointer data);
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]