set_prefer_wide_layout


Description:

[ Version ( since = "1.6" ) ]
public void set_prefer_wide_layout (bool prefer_wide_layout)

Whether to prefer horizontal button layout.

`AdwAlertDialog` can present buttons horizontally or vertically depending on available space, how many buttons there are and how wide they are.

By default it will prefer to stack buttons vertically at medium sizes.

Set to `TRUE` to prefer horizontal layout in these cases instead. This will make the dialog slightly wider as well.

Vertical layout may still be used if the dialog would get too wide otherwise.

Does nothing with just one button, or when the buttons are already horizontal.

Parameters:

this

an alert dialog

prefer_wide_layout

whether to prefer wide layout