This example demonstrates how to use gtk::ListBox
in combination with
a custom model and a custom row type.
The custom model resides in model.rs
and the custom row type in row_data.rs
.
It sets up a gtk::ListBox
containing, per row, a label, spinbutton and
an edit button. The edit button allows to edit the underlying data structure
and changes are taking place immediately in the listbox by making use of GObject
property bindings.
In addition, it is possible to add new rows and delete old ones.
Run it by executing:
cargo run --bin list_box_model