mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
change g_box define position
This commit is contained in:
parent
eb4c026624
commit
0940c81b01
1 changed files with 14 additions and 11 deletions
|
|
@ -31,16 +31,6 @@ impl Window {
|
|||
// Init components
|
||||
let tab = Rc::new(Tab::build(profile, (browser_action, &action)));
|
||||
|
||||
// Init widget
|
||||
let g_box = Box::builder().orientation(Orientation::Vertical).build();
|
||||
|
||||
g_box.append(&ToolbarView::header(
|
||||
(browser_action, &action),
|
||||
profile,
|
||||
&tab.tab_view,
|
||||
));
|
||||
g_box.append(&tab.tab_view);
|
||||
|
||||
// Init events
|
||||
action.append.connect_activate({
|
||||
let tab = tab.clone();
|
||||
|
|
@ -134,7 +124,20 @@ impl Window {
|
|||
});
|
||||
|
||||
// Init struct
|
||||
Self { action, tab, g_box }
|
||||
Self {
|
||||
g_box: {
|
||||
let g_box = Box::builder().orientation(Orientation::Vertical).build();
|
||||
g_box.append(&ToolbarView::header(
|
||||
(browser_action, &action),
|
||||
profile,
|
||||
&tab.tab_view,
|
||||
));
|
||||
g_box.append(&tab.tab_view);
|
||||
g_box
|
||||
},
|
||||
action,
|
||||
tab,
|
||||
}
|
||||
}
|
||||
|
||||
// Actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue