Update uses of relm4-macros to relm4 next branch
This commit is contained in:
parent
3782df1e96
commit
04c7e73dec
10 changed files with 31 additions and 15 deletions
|
|
@ -79,7 +79,8 @@ fn build_ui(application: >k4::Application) {
|
|||
set_margin_start: 24,
|
||||
set_margin_end: 24,
|
||||
append: settings_button = &Button {
|
||||
set_child = Some(&Label) {
|
||||
#[wrap(Some)]
|
||||
set_child = &Label {
|
||||
set_label: "Settings...",
|
||||
set_halign: Align::Start,
|
||||
set_hexpand: true
|
||||
|
|
|
|||
|
|
@ -46,7 +46,8 @@ pub fn build() -> gtk4::Box {
|
|||
set_orientation: Orientation::Vertical,
|
||||
set_spacing: 5,
|
||||
append: lock_screen_button = &Button {
|
||||
set_child: lock_screen_box = Some(>k4::Box) {
|
||||
#[wrap(Some)]
|
||||
set_child: lock_screen_box = >k4::Box {
|
||||
set_orientation: Orientation::Horizontal,
|
||||
set_spacing: 10,
|
||||
append: lock_screen_icon = &Image {
|
||||
|
|
@ -64,7 +65,8 @@ pub fn build() -> gtk4::Box {
|
|||
}
|
||||
},
|
||||
append: log_out_button = &Button {
|
||||
set_child: log_out_box = Some(>k4::Box) {
|
||||
#[wrap(Some)]
|
||||
set_child: log_out_box = >k4::Box {
|
||||
set_orientation: Orientation::Horizontal,
|
||||
set_spacing: 10,
|
||||
append: log_out_icon = &Image {
|
||||
|
|
|
|||
|
|
@ -57,7 +57,8 @@ pub fn build() -> gtk4::Box {
|
|||
pub fn create_button(name: &str, icon_name: &str) -> Button {
|
||||
view! {
|
||||
button = Button {
|
||||
set_child: inner_box = Some(>k4::Box) {
|
||||
#[wrap(Some)]
|
||||
set_child: inner_box = >k4::Box {
|
||||
set_orientation: Orientation::Vertical,
|
||||
set_spacing: 8,
|
||||
set_margin_start: 8,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue