gtk4-rs
gtk4-rs copied to clipboard
Book: Chapter 9...Expressions: Strange behaviour of List on double-click
The pace in the book ist here a bit fast for me (compared to the beginning). So I just copied "gtk4-rs/book/listings/list_widgets/5/" to explore the execution when changing something. If you compile the complete example and double click on one item the list will be shorter. I understood that double clicking should change the value in the displayed IntegerObject. But the entry just vanishes. It becomes clearer if you reduce the number of IntegerObjects at the beginning e.g.
// Create a `Vec<IntegerObject>` with numbers from 0 to 100_000
let vector: Vec<IntegerObject> = (0..=40).map(IntegerObject::new).collect();