mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
define struct, implement action
This commit is contained in:
parent
c0ebe95eb8
commit
ecd686976c
2 changed files with 31 additions and 10 deletions
|
|
@ -5,14 +5,18 @@ use gtk::prelude::BoxExt;
|
|||
use gtk::Box;
|
||||
|
||||
pub fn new() -> Box {
|
||||
// Init components
|
||||
let tab = tab::new();
|
||||
|
||||
// Init widget
|
||||
let tray = Box::builder()
|
||||
.orientation(gtk::Orientation::Horizontal)
|
||||
.spacing(8)
|
||||
.build();
|
||||
|
||||
// Compose childs
|
||||
tray.append(&menu::new());
|
||||
tray.append(&tab::new());
|
||||
tray.append(&menu::new()); // @TODO
|
||||
tray.append(tab.widget.as_ref());
|
||||
|
||||
tray
|
||||
tray // @TODO struct
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue