Re: [Vala] Is has_type_id = false needed in a VAPI binding of an enum?
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Al Thomas <astavale yahoo co uk>
- Cc: Vala compiler development and discussion <vala-list gnome org>
- Subject: Re: [Vala] Is has_type_id = false needed in a VAPI binding of an enum?
- Date: Tue, 28 Apr 2015 12:01:31 +0100
Hello,
Le 28 avr. 2015 11:41, "Al Thomas" <astavale yahoo co uk> a écrit :
I'm pretty sure has_type_id = false isn't needed in an enum mapping in a
VAPI file.
I have tried both false and true values and there is no difference in the
running
of the test program I created. The test program just just prints the enum
values.
I have also binary compared the program and both versions are identical.
So I'm
pretty sure it isn't needed, but before I remove those particular CCode
attributes
from the enum examples in
https://wiki.gnome.org/Projects/Vala/LegacyBindings
I wanted to check here.
I believe it's needed. Try defining a property in a GObject with the enum
type to see if there is a difference.
Abderrahim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]