mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init update action
This commit is contained in:
parent
68a97fdc88
commit
ae3cc7a7d5
14 changed files with 91 additions and 27 deletions
|
|
@ -1,17 +1,19 @@
|
|||
mod subject;
|
||||
mod tray;
|
||||
|
||||
use gtk::HeaderBar;
|
||||
use subject::Subject;
|
||||
use tray::Tray;
|
||||
|
||||
use gtk::HeaderBar;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Header {
|
||||
widget: HeaderBar,
|
||||
}
|
||||
|
||||
impl Header {
|
||||
// Construct
|
||||
pub fn new() -> Header {
|
||||
pub fn new() -> Arc<Header> {
|
||||
let tray = Tray::new();
|
||||
let subject = Subject::new();
|
||||
|
||||
|
|
@ -19,7 +21,7 @@ impl Header {
|
|||
widget.pack_start(tray.widget());
|
||||
widget.set_title_widget(Some(subject.widget()));
|
||||
|
||||
Self { widget }
|
||||
Arc::new(Self { widget })
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue