Toplevel.setTransientFor

Sets a transient-for parent.

Indicates to the window manager that surface is a transient dialog associated with the application surface parent. This allows the window manager to do things like center surface on parent and keep surface above parent.

See [gtk.window.Window.setTransientFor] if you’re using GtkWindow.

interface Toplevel
void
setTransientFor

Parameters

parent gdk.surface.Surface

another toplevel gdk.surface.Surface