Window.this

Creates a new GtkWindow.

To get an undecorated window (no window borders), use [method@Gtk.Window.set_decorated].

All top-level windows created by gtk_window_new() are stored in an internal top-level window list. This list can be obtained from [func@Gtk.Window.list_toplevels]. Due to GTK keeping a reference to the window internally, gtk_window_new() does not return a reference to the caller.

To delete a GtkWindow, call [method@Gtk.Window.destroy].

Return Value

a new GtkWindow.

Throws

ConstructionException GTK+ fails to create the object.

Meta