Hello,

2014-05-11 18:11 GMT+01:00 rastersoft <ras...@rastersoft.com>:
> Hi all:
>
> I'm creating a plugin for Gedit using Vala, and found that the constructor
> is not called. Is this a bug, or a feature?

It is a feature that you shouldn't use ;-) You should use the GLib way
when writing a library (or plugin) for use with C/GLib applications
[citation needed].

In short, the creation method (i.e. ValaWindow() here) should only set
properties (via a GLib.Object() call); the rest goes into the
constuctor ( construct { ... } ). (In the case of a plugin you can
omit the creation method altogether, and have only the constructor).

HTH,
Abderrahim
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to