Yoda/src/app/browser/window/widget.rs

23 lines
470 B
Rust
Raw Normal View History

use adw::ToolbarView;
use gtk::{prelude::BoxExt, Box, Notebook, Orientation};
pub struct Widget {
gobject: Box,
}
impl Widget {
// Construct
pub fn new(header: &ToolbarView, tab: &Notebook) -> Self {
let gobject = Box::builder().orientation(Orientation::Vertical).build();
2024-10-09 10:50:41 +03:00
gobject.append(header);
gobject.append(tab);
Self { gobject }
}
// Getters
pub fn gobject(&self) -> &Box {
&self.gobject
}
}