EpisodeWidget: Added a separator in each widget.
This is a work around since list_box_set_header_func is not yet available in the gtk-rs bindings.
This commit is contained in:
@@ -273,7 +273,8 @@ pub fn episodes_listbox(pd: &Podcast) -> Result<gtk::ListBox> {
|
||||
let list = gtk::ListBox::new();
|
||||
episodes.into_iter().for_each(|mut ep| {
|
||||
let widget = EpisodeWidget::new_initialized(&mut ep, pd);
|
||||
list.add(&widget.container)
|
||||
list.add(&widget.container);
|
||||
list.add(>k::Separator::new(gtk::Orientation::Vertical))
|
||||
});
|
||||
|
||||
list.set_vexpand(false);
|
||||
|
||||
Reference in New Issue
Block a user