GNOME Bugzilla – Bug 664302
Make GPollable streams available to bindings
Last modified: 2011-11-18 14:22:40 UTC
The most useful feature of GPollable*Stream (that is, creating GSources for polling) is currently blocked because of (skip), that are not really needed. Patch following. (Also, a small patch to make g_source_attach useful in pure introspection bindings like gjs, where GMainContext is not available)
Created attachment 201622 [details] [review] GPollable*Stream: expose source methods to introspection GSource is perfectly introspectable, so there is no need to skip all methods of GPollableInputStream/OutputStream that deal with it.
Created attachment 201623 [details] [review] GMain: allow NULL context to g_source_attach Documentation says it's fine and means default context, but the annotations are missing (and thus bindings would complain).
Review of attachment 201622 [details] [review]: But what changed here? Was it after we added the boxed types for GSource? If that's the case then, looks fine to me; the commit message would be better as "GSource is now introspectable, so stop skipping methods that return one." One more note - we're relying on the implicit (transfer full) for boxeds, but I'd like to start adding them now.
Review of attachment 201623 [details] [review]: Looks fine.
Attachment 201622 [details] pushed as 71d3dad - GPollable*Stream: expose source methods to introspection Attachment 201623 [details] pushed as d2fd6da - GMain: allow NULL context to g_source_attach