From df02054b2914c93310f21537c011cb66285fc285 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 7 Feb 2018 05:47:58 +0200 Subject: [PATCH] Hammond-gtk: Change the privacy of the widgets module. --- hammond-gtk/src/main.rs | 18 ++++++++++-------- hammond-gtk/src/stacks/show.rs | 2 +- hammond-gtk/src/views/episodes.rs | 2 +- hammond-gtk/src/widgets/mod.rs | 7 +++++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/hammond-gtk/src/main.rs b/hammond-gtk/src/main.rs index 6e04e6e..b19d6c8 100644 --- a/hammond-gtk/src/main.rs +++ b/hammond-gtk/src/main.rs @@ -51,16 +51,18 @@ macro_rules! clone { ); } -mod views; -mod widgets; -mod stacks; +// They do not need to be public +// But it helps when looking at the generated docs. +pub mod views; +pub mod widgets; +pub mod stacks; -mod headerbar; -mod app; +pub mod headerbar; +pub mod app; -mod utils; -mod manager; -mod static_resource; +pub mod utils; +pub mod manager; +pub mod static_resource; use app::App; diff --git a/hammond-gtk/src/stacks/show.rs b/hammond-gtk/src/stacks/show.rs index 1071379..10c0801 100644 --- a/hammond-gtk/src/stacks/show.rs +++ b/hammond-gtk/src/stacks/show.rs @@ -10,7 +10,7 @@ use hammond_data::dbqueries; use views::{EmptyView, ShowsPopulated}; use app::Action; -use widgets::show::ShowWidget; +use widgets::ShowWidget; use std::sync::mpsc::Sender; diff --git a/hammond-gtk/src/views/episodes.rs b/hammond-gtk/src/views/episodes.rs index 2321665..ca10f43 100644 --- a/hammond-gtk/src/views/episodes.rs +++ b/hammond-gtk/src/views/episodes.rs @@ -8,7 +8,7 @@ use hammond_data::dbqueries; use app::Action; use utils::get_pixbuf_from_path; -use widgets::episode::EpisodeWidget; +use widgets::EpisodeWidget; use std::sync::mpsc::Sender; diff --git a/hammond-gtk/src/widgets/mod.rs b/hammond-gtk/src/widgets/mod.rs index d33f990..3b348fa 100644 --- a/hammond-gtk/src/widgets/mod.rs +++ b/hammond-gtk/src/widgets/mod.rs @@ -1,2 +1,5 @@ -pub mod show; -pub mod episode; +mod show; +mod episode; + +pub use self::episode::EpisodeWidget; +pub use self::show::ShowWidget;