[Vala] add methods to a compact class from outside the main definition in a VAPI file

2013-12-17 Thread rastersoft
Hi all: I'm working on the XCB VAPI files, and I have a problem. XCB is subdivided in several parts: the core X protocol, utility functions and extensions. The core protocol creates a compact class, Connection, which represents a xcb_connection_t structure, and all the functions for the XCB

Re: [Vala] add methods to a compact class from outside the main definition in a VAPI file

2013-12-17 Thread rastersoft
Hi Evan: I believed that Compact classes didn't support inheritance at all. Good to know that it is possible. I created a subclass of Xcb.Connection, and also a static factory function called 'new', which does the cast from Connection to the Icccm one. Thanks! El 18/12/13 01:16, Evan