Gets the first ancestor of this with type widget_type
.
For example, `gtk_widget_get_ancestor (widget, GTK_TYPE_BOX)` gets the first `GtkBox` that’s an ancestor of this. No reference will be added to the returned widget; it should not be unreferenced.
Note that unlike [[email protected]_ancestor], this function considers this to be an ancestor of itself.
this |
a `GtkWidget` |
widget_type |
ancestor type |
the ancestor widget |