Mercurial > pidgin.yaz
diff console/libgnt/gnttree.h @ 13971:df8183b7fa2c
[gaim-migrate @ 16529]
Make multi-column trees look nice.
Show the list of users in a chat-room after you join.
Add some commands (eg. /me, /help etc., all Xeroxed from gtkconv.c)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 20 Jul 2006 17:38:09 +0000 |
parents | 0a0d2a1fd2bc |
children | a71678d2da16 |
line wrap: on
line diff
--- a/console/libgnt/gnttree.h Thu Jul 20 13:04:35 2006 +0000 +++ b/console/libgnt/gnttree.h Thu Jul 20 17:38:09 2006 +0000 @@ -37,14 +37,15 @@ GntTreeRow *root; /* The root of all evil */ GList *list; /* List of GntTreeRow s */ - GHashTable *hash; /* XXX: We may need this for quickly referencing the rows */ + GHashTable *hash; /* We need this for quickly referencing the rows */ int ncol; /* No. of columns */ struct _GntTreeColInfo { int width; - int *name; + char *title; } *columns; /* Would a GList be better? */ + gboolean show_title; }; struct _GnTreeClass @@ -100,6 +101,10 @@ void gnt_tree_set_col_width(GntTree *tree, int col, int width); +void gnt_tree_set_column_titles(GntTree *tree, ...); + +void gnt_tree_set_show_title(GntTree *tree, gboolean set); + G_END_DECLS #endif /* GNT_TREE_H */