Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gtk-CRITICAL **: 16:47:51.105: Type GObject does not have a property named item #1946

Open
kuyu132 opened this issue Dec 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kuyu132
Copy link

kuyu132 commented Dec 22, 2024

https://github.com/gtk-rs/gtk4-rs/blob/main/book/listings/list_widgets/4/main.rs

line45 should be:

    list_item
            .downcast_ref::<ListItem>()
            .expect("Needs to be ListItem")
            .property_expression("item")
            .chain_property::<ItemObject>("number")
            .bind(&label, "label", Widget::NONE);

you should downcast to ListItem first.

@kuyu132 kuyu132 added the bug Something isn't working label Dec 22, 2024
@bilelmoussaoui
Copy link
Member

Patches welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants