mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement activate action
This commit is contained in:
parent
1db706aa5b
commit
bdad712690
2 changed files with 16 additions and 22 deletions
|
|
@ -1,11 +1,13 @@
|
|||
mod tab;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use tab::Tab;
|
||||
|
||||
use gtk::{glib::GString, prelude::BoxExt, Box, Orientation};
|
||||
|
||||
pub struct Main {
|
||||
tab: Tab,
|
||||
tab: Arc<Tab>,
|
||||
widget: Box,
|
||||
}
|
||||
|
||||
|
|
@ -13,7 +15,9 @@ impl Main {
|
|||
// Construct
|
||||
pub fn new() -> Main {
|
||||
// Init components
|
||||
let tab = Tab::new();
|
||||
let tab = Arc::new(Tab::new());
|
||||
|
||||
tab.activate(tab.clone());
|
||||
|
||||
// Extras
|
||||
let widget = Box::builder().orientation(Orientation::Vertical).build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue