diff --git a/hammond-gtk/src/widgets/episode.rs b/hammond-gtk/src/widgets/episode.rs index 581eecd..3da53fc 100644 --- a/hammond-gtk/src/widgets/episode.rs +++ b/hammond-gtk/src/widgets/episode.rs @@ -465,21 +465,21 @@ fn on_play_bttn_clicked( .send(Action::RefreshEpisodesViewBGR) .map_err(From::from) } -/* -fn open_uri(rowid: i32) -> Result<(), Error> { - let uri = dbqueries::get_episode_local_uri_from_id(rowid)? - .ok_or_else(|| format_err!("Expected Some found None."))?; - if Path::new(&uri).exists() { - info!("Opening {}", uri); - open::that(&uri)?; - } else { - bail!("File \"{}\" does not exist.", uri); - } +// fn open_uri(rowid: i32) -> Result<(), Error> { +// let uri = dbqueries::get_episode_local_uri_from_id(rowid)? +// .ok_or_else(|| format_err!("Expected Some found None."))?; + +// if Path::new(&uri).exists() { +// info!("Opening {}", uri); +// open::that(&uri)?; +// } else { +// bail!("File \"{}\" does not exist.", uri); +// } + +// Ok(()) +// } - Ok(()) -} -*/ // Setup a callback that will update the progress bar. #[inline] #[cfg_attr(feature = "cargo-clippy", allow(if_same_then_else))] diff --git a/hammond-gtk/src/widgets/mod.rs b/hammond-gtk/src/widgets/mod.rs index 32992c1..820baf3 100644 --- a/hammond-gtk/src/widgets/mod.rs +++ b/hammond-gtk/src/widgets/mod.rs @@ -3,15 +3,15 @@ pub mod appnotif; mod empty; mod episode; mod home_view; +mod player; mod show; mod shows_view; -mod player; pub use self::aboutdialog::about_dialog; pub use self::empty::EmptyView; pub use self::episode::EpisodeWidget; pub use self::home_view::HomeView; +pub use self::player::PlayerWidget; pub use self::show::ShowWidget; pub use self::show::{mark_all_notif, remove_show_notif}; pub use self::shows_view::ShowsView; -pub use self::player::PlayerWidget; diff --git a/hammond-gtk/src/widgets/player.rs b/hammond-gtk/src/widgets/player.rs index cff2f83..d021fba 100644 --- a/hammond-gtk/src/widgets/player.rs +++ b/hammond-gtk/src/widgets/player.rs @@ -1,7 +1,7 @@ #![allow(warnings)] -use gstreamer_player as gst; use gstreamer::ClockTime; +use gstreamer_player as gst; use gtk; use gtk::prelude::*;