Gets the first ancestor of widget with type widget_type.
For example, gtk_widget_get_ancestor (widget, GTK_TYPE_BOX)
gets the first gtk.box.Box that’s an ancestor of widget. No
reference will be added to the returned widget; it should
not be unreferenced.
Gets the first ancestor of widget with type widget_type.
For example, gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets the first gtk.box.Box that’s an ancestor of widget. No reference will be added to the returned widget; it should not be unreferenced.
Note that unlike gtk.widget.Widget.isAncestor, this function considers widget to be an ancestor of itself.