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
The webkit2gtk5-rs bindings contain IsA<gdk::Event> which fails to build with the message
error[E0277]: the trait bound `Event: ObjectType` is not satisfied
--> webkit2gtk/src/auto/input_method_context.rs:32:49
|
32 | fn filter_key_event(&self, key_event: &impl IsA<gdk::Event>) -> bool;
| ^^^^^^^^^^^^^^^ the trait `ObjectType` is not implemented for `Event`
|
note: required by a bound in `IsA`
--> /home/jeanluc/.cargo/git/checkouts/gtk-rs-core-7be42ca38bd6361c/1728bcb/glib/src/object.rs:85:25
|
85 | pub unsafe trait IsA<T: ObjectType>: ObjectType + AsRef<T> + 'static {}
| ^^^^^^^^^^ required by this bound in `IsA`
error[E0277]: the trait bound `Event: ObjectType` is not satisfied
--> webkit2gtk/src/auto/input_method_context.rs:116:49
|
116 | fn filter_key_event(&self, key_event: &impl IsA<gdk::Event>) -> bool {
| ^^^^^^^^^^^^^^^ the trait `ObjectType` is not implemented for `Event`
|
note: required by a bound in `IsA`
--> /home/jeanluc/.cargo/git/checkouts/gtk-rs-core-7be42ca38bd6361c/1728bcb/glib/src/object.rs:85:25
|
85 | pub unsafe trait IsA<T: ObjectType>: ObjectType + AsRef<T> + 'static {}
| ^^^^^^^^^^ required by this bound in `IsA`
I'm not entirely sure if this is an issue with the webkit bindings or gtk4-rs.
The text was updated successfully, but these errors were encountered:
That's not an issue, gdk::Event is not an object. Gir generates a IsA relation which is not possible, instead you should manually override the methods for now and use AsRef<gdk::Event>
Bug description
The webkit2gtk5-rs bindings contain
IsA<gdk::Event>
which fails to build with the messageI'm not entirely sure if this is an issue with the webkit bindings or gtk4-rs.
The text was updated successfully, but these errors were encountered: