Bug 58103

Summary: Add gobject-introspection support
Product: Wocky Reporter: Will Thompson <will>
Component: GeneralAssignee: Telepathy bugs list <telepathy-bugs>
Status: NEW --- QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://cgit.collabora.com/git/user/wjt/wocky/log/?h=introspection
Whiteboard:
i915 platform: i915 features:

Description Will Thompson 2012-12-11 00:28:41 UTC
I had a quick stab at this. I got it working far enough to let me connect (which is cool) but there are some problems:

• You need to call Wocky.init() manually.
• wocky_porter_register_handler_* need to have GDestroyNotify parameters for their callbacks' user_data. This got me thinking: why do the _by_stanza variants take both the stanza to match, *and* a type & subtype?
• wocky_stanza_build() pretty obviously doesn't work. That's fine, we'll build the trees ourself. But…
• wocky_node_add_child() ends up with you crasing because the return defaults to (transfer full) and so python frees the child node (which is actually owned by the parent) when it falls out of scope. Obviously pretty bad. But changing it to (transfer none) still crashed when you look at parent.children, and I'm not sure why.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.