Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
15157:67ccc195074b | 15158:68385f5bbd61 |
---|---|
36 | 36 |
37 GntTreeRow *root; /* The root of all evil */ | 37 GntTreeRow *root; /* The root of all evil */ |
38 | 38 |
39 GList *list; /* List of GntTreeRow s */ | 39 GList *list; /* List of GntTreeRow s */ |
40 GHashTable *hash; /* We need this for quickly referencing the rows */ | 40 GHashTable *hash; /* We need this for quickly referencing the rows */ |
41 guint (*hash_func)(gconstpointer); | |
42 gboolean (*hash_eq_func)(gconstpointer, gconstpointer); | |
43 GDestroyNotify key_destroy; | |
44 GDestroyNotify value_destroy; | |
41 | 45 |
42 int ncol; /* No. of columns */ | 46 int ncol; /* No. of columns */ |
43 struct _GntTreeColInfo | 47 struct _GntTreeColInfo |
44 { | 48 { |
45 int width; | 49 int width; |
129 void gnt_tree_sort_row(GntTree *tree, void *row); | 133 void gnt_tree_sort_row(GntTree *tree, void *row); |
130 | 134 |
131 /* This will try to automatically adjust the width of the columns in the tree */ | 135 /* This will try to automatically adjust the width of the columns in the tree */ |
132 void gnt_tree_adjust_columns(GntTree *tree); | 136 void gnt_tree_adjust_columns(GntTree *tree); |
133 | 137 |
138 void gnt_tree_set_hash_fns(GntTree *tree, gpointer hash, gpointer eq, gpointer kd); | |
139 | |
134 G_END_DECLS | 140 G_END_DECLS |
135 | 141 |
136 /* The following functions should NOT be used by applications. */ | 142 /* The following functions should NOT be used by applications. */ |
137 | 143 |
138 /* This should be called by the subclasses of GntTree's in their _new function */ | 144 /* This should be called by the subclasses of GntTree's in their _new function */ |