set_modal


Description:

public void set_modal (bool modal)

Sets a dialog modal or non-modal.

Modal dialogs prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use [ method@Gtk.NativeDialog.set_transient_for] to make the dialog transient for the parent; most window managers will then disallow lowering the dialog below the parent.

Parameters:

this

a `GtkNativeDialog`

modal

whether the window is modal