antoyo / relm

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

SpinnerButton #199

Closed MGlolenstine closed 4 years ago

MGlolenstine commented 4 years ago

When using the SpinnerButton, I cannot set the range, as it's method requires two arguments, which I cannot supply with the following code:

gtk::SpinButton{
    property_climb_rate: 1.0,
    digits: 0,
    editable: true,
    hexpand: true,
    range: RANGE,
    numeric: true,
    value: 25565.0,
}

No matter what I set RANGE to, it doesn't work. Tuple: One argument provided, expected two Array: ^ if I just separate them with a comma: Identifier expected.

How can I do this?

antoyo commented 4 years ago

Duplicate of #59. Currently, can can either do it via the adjustment property, or call set_range() manually in init_view().