README for glib-sven-010105-0.patch

This patch adds a new function g_hash_table_new_full() which takes
two GFreeFunctions as additional parameters. A hash table constructed
this way will call this functions to destroy the memory allocated for
the key and value when removing an item from the GHashTable.

Addtionally there is a new function g_hash_table_remove_no_notify()
which does not call the destruction functions. Eventually there
should also be an equivalent g_hash_table_foreach_remove_no_notify()
which should be trivial to add.

The only problem I see is that inserting a new item into a GHashTable
does replace the value (and destroys it if a destroy_func was given),
but keeps the old key in place. This problem is longstanding, but 
should probably be handled differently when a key_destroy_func is 
specified ?!


Sven Neumann  <sven@gimp.org>