antoyo / relm

Idiomatic, GTK+-based, GUI library, inspired by Elm, written in Rust
MIT License
2.43k stars 78 forks source link

Provide ability to set properties with multiple values #172

Closed asonix closed 5 years ago

asonix commented 5 years ago

For example, GTK's set_wm_class method takes two arguments, but there's currently no way to utilize this with the view! macro. Maybe this could be implemented by parsing tuples. into distinct arguments, like

gtk::ApplicationWindow {
    wmclass: ("my-app", "My App"),
}

If people actually need a tuple, they can do

gtk::ApplicationWindow {
    some_property: (("My", "Tuple")),
}
antoyo commented 5 years ago

Duplicate of #59.