-
-
Notifications
You must be signed in to change notification settings - Fork 24
Why does Layout::set_text need a length argument? #61
Comments
It's part of the things we need to improve. However I was certain that we removed the next argument if it was an integer and the current one was a string. Did I miss something @EPashkin? |
I can't see any code in I can see that |
It still under construction gtk-rs/gir#376 |
I see gtk-rs/gir#376 is in progress, so I think it's fine to wait for it to be done automatically. |
This is not covered unfortunately because the array-length annotation is missing in Pango. Someone should file a bug in Bugzilla to get this added, or I'll do it if nobody else is faster. |
Maybe we need add config override for array-length? |
That would make sense (and is relatively simple), yes. Nonetheless all these things should be reported to the respective C libraries. |
https://bugzilla.gnome.org/show_bug.cgi?id=784021 |
Currently we strong against patching .gir files as it will be replaced by next update. |
Next upstream release would ideally have these changes so no patching would be needed after an update. |
Maybe but I don't want look change in big xml and think, fixed it actually or not :( |
The changes between versions are not actually very big usually, unless you skip many major versions. When doing GStreamer releases, I usually go through the diff of the .gir files and it was a manageable task so far. Usually there are not many changes/additions to already existing types. Problem I see with a configuration is that it "makes lazy", and then the annotations are never fixed in the C libraries and every binding ships its own configuration around for these bugs. |
See gtk-rs/gir#387 (comment) . Needs manual bindings for these functions that take a string+length, or return a string+length |
🎉 It looks like this is fixed in the latest |
Then let's close it. :) |
Can't the
length
be calculated withinLayout::set_text
?The text was updated successfully, but these errors were encountered: