Mercurial > pidgin
diff console/libgnt/gnttree.h @ 15158:68385f5bbd61
[gaim-migrate @ 17944]
Generate the marshal-things during make when necessary.
Allow specifying the hash-functions for a GntTree.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 10 Dec 2006 09:26:44 +0000 |
parents | c01f62c83647 |
children | c6b79e535eb8 |
line wrap: on
line diff
--- a/console/libgnt/gnttree.h Sun Dec 10 09:09:39 2006 +0000 +++ b/console/libgnt/gnttree.h Sun Dec 10 09:26:44 2006 +0000 @@ -38,6 +38,10 @@ GList *list; /* List of GntTreeRow s */ GHashTable *hash; /* We need this for quickly referencing the rows */ + guint (*hash_func)(gconstpointer); + gboolean (*hash_eq_func)(gconstpointer, gconstpointer); + GDestroyNotify key_destroy; + GDestroyNotify value_destroy; int ncol; /* No. of columns */ struct _GntTreeColInfo @@ -131,6 +135,8 @@ /* This will try to automatically adjust the width of the columns in the tree */ void gnt_tree_adjust_columns(GntTree *tree); +void gnt_tree_set_hash_fns(GntTree *tree, gpointer hash, gpointer eq, gpointer kd); + G_END_DECLS /* The following functions should NOT be used by applications. */