Yoda/src/app/browser/header.rs

21 lines
363 B
Rust
Raw Normal View History

2024-09-19 11:29:03 +03:00
#[path = "header/subject.rs"] mod subject;
#[path = "header/tray.rs"] mod tray;
2024-09-18 20:33:29 +03:00
use gtk::HeaderBar;
pub fn new() -> HeaderBar
{
2024-09-19 11:29:03 +03:00
let header = HeaderBar::builder().build();
2024-09-19 18:08:09 +03:00
header.pack_start(
&tray::new()
);
2024-09-19 11:29:03 +03:00
2024-09-19 18:08:09 +03:00
header.set_title_widget(
Some(
&subject::new()
)
);
2024-09-19 11:29:03 +03:00
2024-09-19 18:08:09 +03:00
header
2024-09-18 20:33:29 +03:00
}