diff --git a/hammond-gtk/src/widgets/episode.rs b/hammond-gtk/src/widgets/episode.rs index 22399e5..83a47fb 100644 --- a/hammond-gtk/src/widgets/episode.rs +++ b/hammond-gtk/src/widgets/episode.rs @@ -395,18 +395,18 @@ pub fn episodes_listbox(pd: Arc, sender: Sender) -> Result(data: T, container: Z, mut predicate: P) +fn lazy_load(data: T, container: C, mut contructor: F) where T: IntoIterator + 'static, T::Item: 'static, - Z: ContainerExt + 'static, - P: FnMut(T::Item) -> U + 'static, - U: IsA, + C: ContainerExt + 'static, + F: FnMut(T::Item) -> W + 'static, + W: IsA, { let mut data = data.into_iter(); gtk::idle_add(move || { data.next() - .map(|x| container.add(&predicate(x))) + .map(|x| container.add(&contructor(x))) .map(|_| glib::Continue(true)) .unwrap_or(glib::Continue(false)) });