mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
relocate actions
This commit is contained in:
parent
48541da91d
commit
b5b4b359fa
3 changed files with 42 additions and 45 deletions
|
|
@ -1,6 +1,8 @@
|
|||
mod tab;
|
||||
mod widget;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Main {
|
||||
widget: widget::Main,
|
||||
tab: tab::Tab,
|
||||
|
|
@ -8,15 +10,15 @@ pub struct Main {
|
|||
|
||||
impl Main {
|
||||
// Construct
|
||||
pub fn new() -> Main {
|
||||
pub fn new() -> Arc<Main> {
|
||||
// Init components
|
||||
let tab = tab::Tab::new();
|
||||
|
||||
// Init struct
|
||||
Self {
|
||||
Arc::new(Self {
|
||||
widget: widget::Main::new(tab.widget().gtk()), // @TODO
|
||||
tab,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue