WidgetPath.length

int length()

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

Returns

the number of elements in the path