Add support for "set" backed by GHashTable
It would be very convenient when working with Python via pygobject if it was possible to annotate a GHashTable return type as a set
.
Specifically, when using a GHashTable as a set with g_hash_table_add()
, it would be ideal if we could return this type and have it recognized by pygobject as a python set()
.
For example:
/**
* foo_get_unique_names:
* @self: This #Foo object
*
* Returns: (transfer none) (element-type set utf8): The set of unique names.
*/
GHashTable *
foo_get_unique_names (Foo *self)
{
return self->names;
}
Edited by Stephen Gallagher