Yoda/src/app/browser/window/header/widget.rs
2024-11-28 01:35:48 +02:00

17 lines
288 B
Rust

use adw::ToolbarView;
use gtk::Box;
pub struct Widget {
pub gobject: ToolbarView,
}
impl Widget {
// Construct
pub fn new(top_bar: &Box) -> Self {
let gobject = ToolbarView::builder().build();
gobject.add_top_bar(top_bar);
Self { gobject }
}
}