22 lines
354 B
Rust
Raw Normal View History

2024-09-18 22:38:18 +03:00
#[path = "tab/label.rs"] mod label;
#[path = "tab/page.rs"] mod page;
2024-09-18 22:07:52 +03:00
use gtk::Notebook;
pub fn new() -> Notebook
{
2024-09-18 22:16:58 +03:00
return Notebook::builder().scrollable(true).build();
2024-09-18 22:38:18 +03:00
}
pub fn append(
tab : Notebook,
is_current : bool
) -> u32
{
return tab.append_page(
&page::new(),
Some(
&label::new()
)
);
2024-09-18 22:07:52 +03:00
}