mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
17 lines
288 B
Rust
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 }
|
|
}
|
|
}
|