mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
init main tab container
This commit is contained in:
parent
9550e6f795
commit
9039c7b2c9
2 changed files with 16 additions and 1 deletions
|
|
@ -1,8 +1,17 @@
|
|||
#[path = "main/tab.rs"] mod tab;
|
||||
|
||||
use gtk::Box;
|
||||
use gtk::prelude::BoxExt;
|
||||
|
||||
pub fn new() -> Box
|
||||
{
|
||||
return Box::builder().orientation(
|
||||
let main = Box::builder().orientation(
|
||||
gtk::Orientation::Vertical
|
||||
).build();
|
||||
|
||||
main.append(
|
||||
&tab::new()
|
||||
);
|
||||
|
||||
return main;
|
||||
}
|
||||
6
src/app/browser/main/tab.rs
Normal file
6
src/app/browser/main/tab.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
use gtk::Notebook;
|
||||
|
||||
pub fn new() -> Notebook
|
||||
{
|
||||
return Notebook::builder().build();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue