For example sending GTK_TYPE_BOX gets the first Gtk.Box that's an ancstor of widget. No reference will be added to the retured widget; it should not be unreferenced. See note about checking for a toplevel Gtk.WIndow in the docs for Widget.Toplevel. Note that unlike Widget.IsAncestor, Widget.GetAncestor considers widget to be an ancestor of itself.
Requirements
Namespace: Gtk Assembly: gtk-sharp (in gtk-sharp.dll)