Skip to content

Commit

Permalink
Update examples/listbox_sort_stringlist/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Bilal Elmoussaoui <[email protected]>
  • Loading branch information
jimbrankelly and bilelmoussaoui authored Oct 29, 2024
1 parent cc9858f commit e0b01a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/listbox_sort_stringlist/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn build_ui(application: &gtk::Application) {
let model = gtk::StringList::new(&["zoo", "abba", "donkey", "sunrise", "river", "phoenix"]);

// Create a sort model and bind it to the ListStore and the sorter.
let sort_model = gtk::SortListModel::new(Some(model.clone()), Some(sorter.clone()));
let sort_model = gtk::SortListModel::new(Some(model.clone()), Some(sorter));

// And then create the UI part, the listbox and bind the sort
// model to it. Whenever the UI needs to show a new row, e.g. because
Expand Down

0 comments on commit e0b01a5

Please sign in to comment.