GtkWidget::get_ancestor

GtkWidget get_ancestor(GType widget_type);

Returns the first ancestor of the widget of type widget_type.

See also: is_ancestor()