Hi Spaceman
If the gift was many years ago, it's unlikely that it would be considered non 'bona fides'. Assuming the wife has no income in her own name, it comes down to how much she has in capital assets, excluding her principal private residence, but including 50% of anything held in joint names with her husband.
It's a prime example of how doing what seems to be the correct thing (e.g. putting assets in joint names) can actually end up costing you a lot of money. The basic message is, if one spouse is the sole breadwinner, it can make financial sense to put everything in that spouse's name in order to qualify for the dependant's element of the State pension.
Advance planning is probably essential in such cases and it is not clear from your posting whether you are enquiring about a current situation or a potential future one. If it is a future situation, then there is probably still time to arrange your finances in such a way that you don't prejudice your entitlement to the dependant's element of your State pension.
Hope this helps.
Homer