ShowWidget: Fix markallplayed functionality.

cfe79a73d6 changed the structure
of the EpisodeWidget and broke this.
This commit is contained in:
Jordan Petridis 2018-06-02 21:34:19 +03:00
parent f9e85155a8
commit a7f87f2ac8
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -339,8 +339,7 @@ fn dim_titles(episodes: &gtk::ListBox) -> Option<()> {
.downcast::<gtk::Box>()
.ok()?;
let bar = foo.get_children().remove(0).downcast::<gtk::Box>().ok()?;
let baz = bar.get_children().remove(0).downcast::<gtk::Box>().ok()?;
let title = baz.get_children().remove(0).downcast::<gtk::Label>().ok()?;
let title = bar.get_children().remove(0).downcast::<gtk::Label>().ok()?;
title.get_style_context().map(|c| c.add_class("dim-label"));
}