mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
drop extra move
This commit is contained in:
parent
9b16022820
commit
86c8ba2b66
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ impl List {
|
||||||
// * wanted only to append items after `DropDown` init
|
// * wanted only to append items after `DropDown` init
|
||||||
let factory = SignalListItemFactory::new();
|
let factory = SignalListItemFactory::new();
|
||||||
|
|
||||||
factory.connect_setup(move |_, gobject| {
|
factory.connect_setup(|_, gobject| {
|
||||||
// Init row widget for dropdown item
|
// Init row widget for dropdown item
|
||||||
let widget = Box::builder()
|
let widget = Box::builder()
|
||||||
.orientation(gtk::Orientation::Vertical)
|
.orientation(gtk::Orientation::Vertical)
|
||||||
|
|
@ -51,7 +51,7 @@ impl List {
|
||||||
.set_child(Some(&widget));
|
.set_child(Some(&widget));
|
||||||
});
|
});
|
||||||
|
|
||||||
factory.connect_bind(move |_, gobject| {
|
factory.connect_bind(|_, gobject| {
|
||||||
// Downcast requirements
|
// Downcast requirements
|
||||||
let list_item = gobject.downcast_ref::<ListItem>().unwrap();
|
let list_item = gobject.downcast_ref::<ListItem>().unwrap();
|
||||||
let item = list_item.item().and_downcast::<Item>().unwrap();
|
let item = list_item.item().and_downcast::<Item>().unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue