Re: GooCanvas items constructors don't follow GObject conventions



OK, I understand your point,

I'll see with the vala team if something is possible on their side.

2010/1/27 Murray Cumming <murrayc murrayc com>
On Tue, 2010-01-26 at 15:33 +0100, Éric ALBER wrote:
> OK, I understand that breaking the API is not a good solution.
>
> But using g_object_new is not a valid option for vala bindings either.
> In fact vala bindings are not libraries like goocanvasmm for C++.
> Vala generates C code which uses directly the C implementation of the
> libraries.
> So if a function is not available in the C library, it will not be
> available in the vala binding either.
> Even writing a simple function that calls g_object_new is not
> possible.
> That's why these functions should be added to goocanvas directly.

That seems like a weakness of vala then. It should allow you to improve
upon underlying APIs because C APIs are generally inconsistent.

--
murrayc murrayc com
www.murrayc.com
www.openismus.com




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