gtk4-rs icon indicating copy to clipboard operation
gtk4-rs copied to clipboard

Book: Chapter 9...Expressions: Strange behaviour of List on double-click

Open Maikel1963 opened this issue 1 year ago • 0 comments

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();

Maikel1963 avatar Feb 07 '24 14:02 Maikel1963