telepathy-gabble and other CMs frequently construct TpIntSet instances with one member. It would be convenient to have a function for this.
Implemented in a branch at http://git.collabora.co.uk/?p=user/wjt/telepathy-glib.git;a=shortlog;h=refs/heads/intset-new-singleton
Personally, I find the terminology _new_singleton() more confusing than helpful since a singleton generally has a very specific design-pattern meaning and it's being used for something quite different here. I think _new_single() might be slightly better, but there could be better options.
That's a fair point. _new_from_element? _new_from_elt?
Perhaps tp_intset_new_containing? "tp_intset_new_containing (123)" sounds fairly unambiguous to me :-)
I agree, and have made that change.
Fixed in 0.7.26
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.