update comments

This commit is contained in:
yggverse 2024-11-20 16:38:24 +02:00
parent 86c8ba2b66
commit 103b3456a4

View File

@ -28,7 +28,7 @@ impl List {
let factory = SignalListItemFactory::new(); let factory = SignalListItemFactory::new();
factory.connect_setup(|_, gobject| { factory.connect_setup(|_, gobject| {
// Init row widget for dropdown item // Init widget for dropdown item
let widget = Box::builder() let widget = Box::builder()
.orientation(gtk::Orientation::Vertical) .orientation(gtk::Orientation::Vertical)
.build(); .build();
@ -44,7 +44,7 @@ impl List {
.build(), .build(),
); );
// Update menu item // Done
gobject gobject
.downcast_ref::<ListItem>() .downcast_ref::<ListItem>()
.unwrap() .unwrap()
@ -57,7 +57,7 @@ impl List {
let item = list_item.item().and_downcast::<Item>().unwrap(); let item = list_item.item().and_downcast::<Item>().unwrap();
let container = list_item.child().and_downcast::<Box>().unwrap(); let container = list_item.child().and_downcast::<Box>().unwrap();
// Update Title (expected as the first child) // Update `title` (expected as the first child)
container container
.first_child() .first_child()
.unwrap() .unwrap()
@ -65,7 +65,7 @@ impl List {
.unwrap() .unwrap()
.set_label(&item.title()); .set_label(&item.title());
// Update Subtitle (expected as the last child) // Update `subtitle` (expected as the last child)
container container
.last_child() .last_child()
.unwrap() .unwrap()