antoyo / relm

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

Open window with set size #196

Closed MGlolenstine closed 4 years ago

MGlolenstine commented 4 years ago

I need a window to stretch over whole window, but I don't know how to set the size.

In GTK, there is a resizable trait, which I could use with the request_size, but I have no idea how to do this with relm.

MGlolenstine commented 4 years ago

I figured out how to do that... I just had to add

            resizable: false,
            property_default_width: 480,
            property_default_height: 272,

to the Window object.