opened
etrombly
username_0
Not sure if there is an easy fix to this, but I was trying to set the policy on a scrolled window. It requires the policy for the horizontal and vertical scrollbar, but you can only pass one argument.

```rust
gtk::ScrolledWindow {
    policy: (gtk::PolicyType::None, gtk::PolicyType::Automatic),
```
gtk properties can only have one argument using attributes
issue
created
antoyo
username_1
Yeah, multiple value properties are not supported.
You have 2 alternatives:

 * Either try with [hscroll_policy](http://gtk-rs.org/docs/gtk/trait.ScrollableExt.html#tymethod.set_hscroll_policy) and [vscroll_policy](http://gtk-rs.org/docs/gtk/trait.ScrollableExt.html#tymethod.set_vscroll_policy).
 * Or use the [`init_view()` method](https://github.com/username_1/relm/blob/49ca37deec56ed5aeb0f818d2dac6799501bd1a8/examples/simple.rs#L48) to call `set_policy`.

If there are other properties like that, please tell me and I'll fix that on a case-by-case basis (perhaps even in gtk-rs itself).
comment
created
etrombly
username_0
hscroll_policy is working. If I find any others I'll report here. Thanks
comment
created
superlou
username_2
Is this the same thing as trying to do [set_size_request](https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-size-request)?
comment
created
antoyo
username_1
@username_2: For that, there's [height_request](http://gtk-rs.org/docs/gtk/trait.WidgetExt.html#tymethod.set_property_height_request).
comment
created
superlou
username_2
That works, thanks.
comment
created
GiraffeKey
username_3
Hey, init_view() is a bit inconvenient, so I'd like to add support for this. Any suggestions on how I can contribute? I sifted through the code but can't seem to find the view macro anywhere, could use some help navigating.
comment
created
antoyo
username_1
@username_3: You'll have to parse more than one `Value` [here](https://github.com/username_1/relm/blob/master/relm-derive/src/gen/parser.rs#L705). Or maybe a new type `Values` based on [this](https://github.com/username_1/relm/blob/master/relm-derive/src/gen/parser.rs#L772) which parses multiple `Expr` separated by commas.

For the syntax, I'm not sure, because I think there are some arguments that are tuples.

If you need more help, I'll be happy to provide more details.
comment