mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
append testing tab
This commit is contained in:
parent
b759ad72ee
commit
3d33be7e24
1 changed files with 10 additions and 3 deletions
|
|
@ -5,12 +5,19 @@ use gtk::Notebook;
|
||||||
|
|
||||||
pub fn new() -> Notebook
|
pub fn new() -> Notebook
|
||||||
{
|
{
|
||||||
return Notebook::builder().scrollable(true).build();
|
let tab = Notebook::builder().scrollable(true).build();
|
||||||
|
|
||||||
|
append(
|
||||||
|
tab.clone(),
|
||||||
|
true
|
||||||
|
); // @TODO
|
||||||
|
|
||||||
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn append(
|
pub fn append(
|
||||||
tab : Notebook,
|
tab : Notebook,
|
||||||
is_current : bool
|
current : bool
|
||||||
) -> u32
|
) -> u32
|
||||||
{
|
{
|
||||||
let page = page::new();
|
let page = page::new();
|
||||||
|
|
@ -27,7 +34,7 @@ pub fn append(
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
if is_current
|
if current
|
||||||
{
|
{
|
||||||
tab.set_current_page(
|
tab.set_current_page(
|
||||||
Some(
|
Some(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue