Skip to content

Commit e0b01a5

Browse files
Update examples/listbox_sort_stringlist/main.rs
Co-authored-by: Bilal Elmoussaoui <[email protected]>
1 parent cc9858f commit e0b01a5

File tree

1 file changed

+1
-1
lines changed
  • examples/listbox_sort_stringlist

1 file changed

+1
-1
lines changed

examples/listbox_sort_stringlist/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn build_ui(application: &gtk::Application) {
4242
let model = gtk::StringList::new(&["zoo", "abba", "donkey", "sunrise", "river", "phoenix"]);
4343

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

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

0 commit comments

Comments
 (0)