gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

[BUG] window.rs has two fn "screen" #849

Open wenfer opened 7 months ago

wenfer commented 7 months ago

Bug description

i compile my test.rs got a error

then i found two "screen" function in window.rs

Backtrace

error[E0034]: multiple applicable items in scope --> src/main.rs:23:29 | | let screen = window.screen().unwrap(); | ^^^^^^ multiple screen found

ski0090 commented 6 months ago

What did you “use”?

ski0090 commented 6 months ago
multiple applicable items in scope
candidate #1 is defined in an impl of the trait `gtk::prelude::GtkMountOperationExt` for the type `O`
candidate #2 is defined in an impl of the trait `gtk::prelude::StyleContextExt` for the type `O`
candidate #3 is defined in an impl of the trait `gtk::prelude::WidgetExt` for the type `O`
candidate #4 is defined in an impl of the trait `gtk::prelude::GtkWindowExt` for the type `O`
candidate #5 is defined in an impl of the trait `gtk::prelude::InvisibleExtManual` for the type `T`

I saw the same error message