Direct access to Gdk.RGBA property causes segfault - 0.46
//rgba_segfault.vala
void main (string [ ] args) {
Gtk.init(ref args);
var cb = new Gtk.ColorButton();
Gdk.RGBA rgba = cb.rgba;
message(rgba.to_string());
}
valac --pkg gtk+-3.0 --pkg gdk-3.0 rgba_segfault.vala
If cb.rgba
is replaced with cb.get_rgba()
the code runs as expected.
Earlier vala versions do not have this issue.