mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
drop extra move
This commit is contained in:
parent
9b16022820
commit
86c8ba2b66
@ -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…
x
Reference in New Issue
Block a user