2024-09-20 18:02:10 +03:00
|
|
|
mod menu;
|
|
|
|
mod tab;
|
2024-09-19 11:29:03 +03:00
|
|
|
|
|
|
|
use gtk::prelude::BoxExt;
|
2024-09-20 18:02:10 +03:00
|
|
|
use gtk::Box;
|
2024-09-19 11:29:03 +03:00
|
|
|
|
2024-09-20 18:02:10 +03:00
|
|
|
pub fn new() -> Box {
|
2024-09-22 02:32:57 +03:00
|
|
|
// Init components
|
|
|
|
let tab = tab::new();
|
|
|
|
|
|
|
|
// Init widget
|
2024-09-19 11:29:03 +03:00
|
|
|
let tray = Box::builder()
|
2024-09-20 18:02:10 +03:00
|
|
|
.orientation(gtk::Orientation::Horizontal)
|
2024-09-19 11:29:03 +03:00
|
|
|
.spacing(8)
|
|
|
|
.build();
|
|
|
|
|
2024-09-20 18:02:10 +03:00
|
|
|
// Compose childs
|
2024-09-22 02:32:57 +03:00
|
|
|
tray.append(&menu::new()); // @TODO
|
|
|
|
tray.append(tab.widget.as_ref());
|
2024-09-19 11:29:03 +03:00
|
|
|
|
2024-09-22 02:32:57 +03:00
|
|
|
tray // @TODO struct
|
2024-09-20 18:02:10 +03:00
|
|
|
}
|