mirror of https://github.com/YGGverse/Yoda.git
yggverse
2 months ago
1 changed files with 12 additions and 5 deletions
@ -1,12 +1,19 @@ |
|||||||
mod subject; |
mod subject; |
||||||
mod tray; |
mod tray; |
||||||
|
|
||||||
|
use std::sync::Arc; |
||||||
|
|
||||||
use gtk::HeaderBar; |
use gtk::HeaderBar; |
||||||
|
|
||||||
pub fn new() -> HeaderBar { |
pub struct Header { |
||||||
let header = HeaderBar::builder().build(); |
pub widget: Arc<gtk::HeaderBar>, |
||||||
|
} |
||||||
|
|
||||||
|
pub fn new() -> Header { |
||||||
|
let widget = Arc::new(HeaderBar::builder().build()); |
||||||
|
|
||||||
|
widget.pack_start(&tray::new()); |
||||||
|
widget.set_title_widget(Some(&subject::new())); |
||||||
|
|
||||||
header.pack_start(&tray::new()); |
Header { widget } |
||||||
header.set_title_widget(Some(&subject::new())); |
|
||||||
header |
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue