|
|
@ -2,18 +2,21 @@ mod subject; |
|
|
|
mod tray; |
|
|
|
mod tray; |
|
|
|
mod widget; |
|
|
|
mod widget; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use std::sync::Arc; |
|
|
|
|
|
|
|
|
|
|
|
pub struct Header { |
|
|
|
pub struct Header { |
|
|
|
widget: widget::Header, |
|
|
|
widget: widget::Header, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
impl Header { |
|
|
|
impl Header { |
|
|
|
pub fn new() -> Header { |
|
|
|
// Construct
|
|
|
|
Self { |
|
|
|
pub fn new() -> Arc<Header> { |
|
|
|
|
|
|
|
Arc::new(Self { |
|
|
|
widget: widget::Header::new( |
|
|
|
widget: widget::Header::new( |
|
|
|
tray::Tray::new().widget().gtk(), |
|
|
|
tray::Tray::new().widget().gtk(), |
|
|
|
subject::Subject::new().widget().gtk(), |
|
|
|
subject::Subject::new().widget().gtk(), |
|
|
|
), |
|
|
|
), |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Getters
|
|
|
|
// Getters
|
|
|
|