You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gtk-rs/gir (automatic binding generator for gtk-rs) currently don't
support[1] structs with bitfields and translates them to
incorrectly-sized `struct`s. As a result, `pango_sys::PangoLogAttr` was
twice as long as it was supposed to be, and the output of
`get_log_attrs_readonly` referred out of bounds. This is why we saw a
text cursor in an `Entry` skipping characters when the user pressed
arrow keys.
This commit addresses this problem by interpreting `PangoLogAttr*` as
`LogAttrFlags*` (which we already have) and carefully laying out
`LogAttrFlags` according to `PangoLogAttr`.
[1]: gtk-rs/gir#465
Blocked by rust-lang/rfcs#314 but we need that for the remaining types missing in glib-sys, etc.
The text was updated successfully, but these errors were encountered: