Grid .add() to .push()

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-08-15 19:34:13 +02:00
parent 69405aaa76
commit ece95344bf

View File

@@ -60,7 +60,7 @@ struct Environment {
} }
/// Handles the requests of the `PolicyCheckView`. /// Handles the requests of the `PolicyCheckView`.
#[derive(Default, AsAny)] #[derive(AsAny, Default)]
pub struct PolicyCheckState { pub struct PolicyCheckState {
action: Option<Action>, action: Option<Action>,
duration: Duration, duration: Duration,
@@ -643,20 +643,20 @@ impl State for PolicyCheckState {
Grid::new() Grid::new()
.id(ID_POLICY_CHECK_MENU) .id(ID_POLICY_CHECK_MENU)
.columns( .columns(
Columns::new() Columns::create()
// Menu Button // Menu Button
.add("80") .push("80")
// Seperator // Seperator
.add("1") .push("1")
// Keyboard Shortcut // Keyboard Shortcut
.add("*") .push("*")
.build(), .build(),
) )
.rows( .rows(
Rows::new() Rows::create()
.add("auto") .push("auto")
.add("auto") .push("auto")
.add("auto") .push("auto")
.build(), .build(),
) )
.child( .child(