use gtk::Button;
pub struct Tab {
pub widget: Button,
}
impl Tab {
pub fn new() -> Self {
Self {
widget: Button::builder()
.action_name("win.tab_append")
.icon_name("tab-new-symbolic")
.tooltip_text("New tab")
.build(),
}
}
pub fn widget(&self) -> &Button {
&self.widget
}
}