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:
Jordan Petridis
2017-12-15 21:06:57 +02:00
parent 3c90e98d43
commit 4375c7f4ce
2 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -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(&gtk::Separator::new(gtk::Orientation::Vertical))
});
list.set_vexpand(false);