Gtk.TextView.prototype.get_window_type

function get_window_type(window:Gdk.Window):Gtk.TextWindowType {
    // Gjs wrapper for gtk_text_view_get_window_type()
}

Usually used to find out which window an event corresponds to. If you connect to an event signal on text_view, this function should be called on <literal>event-&gt;window</literal> to see which window it was.

window

a window type

Returns

the window type.