By Colin Freeman, Telegraph
It will come as no great surprise to many. Despite the tutting of the West, and the efforts of Uganda's small – and brave – gay rights community, the law has the backing of large numbers of Uganda's conservative churchmen, who are not exactly in the Lambeth Palace school of right-on thought.
What's also worrying are the comments from Mr Museveni's spokesman when he made the announcement this morning. The president, he disclosed, did not opt to quietly sign the bill over the weekend, while the world was distracted by the revolution in Ukraine. Instead, he wanted "the full witness of the international media to demonstrate Uganda's independence in the face of Western pressure and provocation".
In other words, this is no longer just about gay rights, in Mr Museveni's view, but about the West lecturing an African country on how to run its internal affairs, in this case on a matter of sensitive sexual morality.
That, of course, is an accusation that the Foreign Office is normally loath to avoid. Whenever I've met diplomats in my time as a foreign correspondent, they are at pains not to sound like a colonial viceroy. But on the question of gay rights, it's fair to say that, in recent years, the Foreign Office has not been scared of causing offence.
When Chris Bryant, the openly gay former Anglican vicar, served as a Foreign Office minister between 2009 and 2010, he openly encouraged British diplomats around the world to show public support for gay rights, even if it drew anger from their host governments. And in a similar vein, HMG's policy now is that countries which pass anti-gay legislation can expect to lose donor money.
NB: Colin Freeman states in this article that gay activist David Kato was murdered in 2011, but omits to mention that this was not a homophobic act but was committed by a homosexual prostitute whom he failed to pay for his services.