Method

AdwAlertDialogset_prefer_wide_layout

since: 1.6

Declaration [src]

void
adw_alert_dialog_set_prefer_wide_layout (
  AdwAlertDialog* self,
  gboolean prefer_wide_layout
)

Description [src]

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.

Available since: 1.6

Parameters

prefer_wide_layout

Type: gboolean

Whether to prefer wide layout.