Gtk.WidgetPath.prototype.length

function length():Number {
    // Gjs wrapper for gtk_widget_path_length()
}

Returns the number of Gtk.Widget #GTypes between the represented widget and its topmost container.

Since 3.0

Returns

the number of elements in the path