set_transient_for


Description:

[ Version ( since = "3.20" ) ]
public void set_transient_for (Window? parent)

Dialog windows should be set transient for the main application window they were spawned from.

This allows window managers to e.g. keep the dialog on top of the main window, or center the dialog over the main window.

Passing null for parent unsets the current transient window.

Parameters:

this

a NativeDialog

parent

parent window, or null