reorganize widget modules

This commit is contained in:
yggverse 2024-09-23 18:51:48 +03:00
parent b9b226cc54
commit 4903968309
47 changed files with 352 additions and 786 deletions

View file

@ -1,19 +1,23 @@
mod widget;
use gtk::Button;
pub struct Tab {
pub widget: widget::Tab,
pub widget: Button,
}
impl Tab {
// Construct
pub fn new() -> Tab {
Self {
widget: widget::Tab::new(),
widget: Button::builder()
.action_name("win.tab_append")
.icon_name("tab-new-symbolic")
.tooltip_text("New tab")
.build(),
}
}
// Getters
pub fn widget(&self) -> &widget::Tab {
pub fn widget(&self) -> &Button {
&self.widget
}
}