This is a convenience function for using a GHashTable as a set. It is equivalent to calling g_hash_table_replace () with key as both the key and the value. In particular, this means that if key already exists in the hash table, then the old copy of key in the hash table is freed and key replaces it in the table.