-struct boot_editor *boot_editor_init(struct pmenu *menu,
- const struct pb_boot_data *bd,
- void (*on_exit)(struct boot_editor *,
- enum boot_editor_result,
- struct pb_boot_data *))
+static void boot_editor_layout_widgets(struct boot_editor *boot_editor)
+{
+ int y = 1;
+
+ y += layout_pair(boot_editor, y, boot_editor->widgets.image_l,
+ boot_editor->widgets.image_f);
+
+ y += layout_pair(boot_editor, y, boot_editor->widgets.initrd_l,
+ boot_editor->widgets.initrd_f);
+
+ y += layout_pair(boot_editor, y, boot_editor->widgets.dtb_l,
+ boot_editor->widgets.dtb_f);
+
+ y += layout_pair(boot_editor, y, boot_editor->widgets.args_l,
+ boot_editor->widgets.args_f);
+
+
+ y++;
+ widget_move(widget_button_base(boot_editor->widgets.ok_b), y, 9);
+ widget_move(widget_button_base(boot_editor->widgets.cancel_b), y, 19);
+}
+
+struct boot_editor *boot_editor_init(struct cui *cui,
+ struct pmenu_item *item,
+ const struct system_info *sysinfo,
+ void (*on_exit)(struct cui *cui,
+ struct pmenu_item *item,
+ struct pb_boot_data *bd))