Gtk.Widget.prototype.hide_on_delete

function hide_on_delete():Boolean {
    // Gjs wrapper for gtk_widget_hide_on_delete()
}

Utility function; intended to be connected to the Gtk.delete-event signal on a Gtk.Window. The function calls Gtk.Widget.prototype.hide on its argument, then returns true. If connected to ::delete-event, the result is that clicking the close button for a window (on the window frame, top right corner usually) will hide but not destroy the window. By default, GTK+ destroys windows when ::delete-event is received.

Returns

true