[Vala] Struct property bug: get, but not set
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: Vala ML <vala-list gnome org>
- Subject: [Vala] Struct property bug: get, but not set
- Date: Mon, 2 May 2011 11:32:19 +0800
The following displays 0 for button.color.red.
Expected: 100.
void main (string[] args) {
Gtk.init (ref args);
var button = new Gtk.ColorButton ();
button.color.red = 100; /*1*/
debug ("%d", button.color.red);
}
Line /*1*/ is compiled to:
gtk_color_button_get_color (button, &_tmp1_);
_tmp1_.red = (guint16) 100;
There is no set access to button.color at all!
Is this a known bug?
hand
Nor Jaidi Tuah
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]