mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
use tuple for actions
This commit is contained in:
parent
b70a5a7867
commit
61010e0a42
6 changed files with 24 additions and 39 deletions
|
|
@ -25,11 +25,11 @@ impl Content {
|
|||
// Construct
|
||||
|
||||
/// Create new container for different components
|
||||
pub fn new(window_action: Rc<WindowAction>, tab_action: Rc<TabAction>) -> Self {
|
||||
pub fn new(action: (Rc<WindowAction>, Rc<TabAction>)) -> Self {
|
||||
Self {
|
||||
gobject: Box::builder().orientation(Orientation::Vertical).build(),
|
||||
window_action,
|
||||
tab_action,
|
||||
window_action: action.0,
|
||||
tab_action: action.1,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue