func (v *Widget) GetToplevel() (*Widget, error) {
	c := C.gtk_widget_get_toplevel(v.native())
	if c == nil {
		return nil, nilPtrErr
	}
	return wrapWidget(glib.Take(unsafe.Pointer(c))), nil
}
func (v *Widget) GetToplevel() (*Widget, error) {
	c := C.gtk_widget_get_toplevel(v.native())
	if c == nil {
		return nil, nilPtrErr
	}
	return wrapWidget(glib.Take(unsafe.Pointer(c))), nil
}
func ( v * Widget ) GetToplevel ( ) ( * Widget , error ) { c := C . gtk_widget_get_toplevel ( v . native ( ) ) if c == nil { return nil , nilPtrErr } return wrapWidget ( glib . Take ( unsafe . Pointer ( c ) ) ) , nil }
// GetToplevel is a wrapper around gtk_widget_get_toplevel().
GetToplevel is a wrapper around gtk_widget_get_toplevel () .