rename constructors

This commit is contained in:
yggverse 2025-01-15 00:25:33 +02:00
parent 941b1cc283
commit edb385f903
36 changed files with 266 additions and 180 deletions

View file

@ -26,11 +26,11 @@ impl Content {
// Construct
/// Create new container for different components
pub fn new((window_action, tab_action): (Rc<WindowAction>, Rc<TabAction>)) -> Self {
pub fn build((window_action, tab_action): (&Rc<WindowAction>, &Rc<TabAction>)) -> Self {
Self {
g_box: Box::builder().orientation(Orientation::Vertical).build(),
window_action,
tab_action,
window_action: window_action.clone(),
tab_action: tab_action.clone(),
}
}