Gtk.CssProvider.load_from_data has breaking change of VAPI signature in 0.56.11 / main
There has been some changes to the VAPI signature of Gtk.CssProvider.load_from_data
, that effectively breaks previous use of it.
In 0.56.10 the signature (ignoring [CCode]
attributes) is:
public void load_from_data (uint8[] data);
In 0.56.11/.12 the signature is:
public void load_from_data (string data, ssize_t length);
In main the signature is:
public void load_from_data (string data, ssize_t length = -1);
I understand that load_from_data was deprecated in GTK 4.12 in favor of load_from_bytes
and load_from_string
and I very much welcome that change. In that context, any breaking change to load_from_data
feels like a bad idea at this point. A load_from_data
that takes a string as parameter also seems pretty obsolete when we have load_from_string
.
(Blame me for not noting this earlier: we now run into this issue on Dino and I didn't expect two independent changes that break compilation of Dino in just one patch release)