Re: [Vala] constructor in peas plugin
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: rastersoft <raster rastersoft com>
- Cc: Vala-list <vala-list gnome org>
- Subject: Re: [Vala] constructor in peas plugin
- Date: Sun, 11 May 2014 19:37:32 +0100
Hello,
2014-05-11 18:11 GMT+01:00 rastersoft <raster 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]