comparison 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
comparison
equal deleted inserted replaced
13970:4a2e9c494bed 13971:df8183b7fa2c
35 GntTreeRow *bottom; /* The bottommost visible item */ 35 GntTreeRow *bottom; /* The bottommost visible item */
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; /* XXX: We may need this for quickly referencing the rows */ 40 GHashTable *hash; /* We need this for quickly referencing the rows */
41 41
42 int ncol; /* No. of columns */ 42 int ncol; /* No. of columns */
43 struct _GntTreeColInfo 43 struct _GntTreeColInfo
44 { 44 {
45 int width; 45 int width;
46 int *name; 46 char *title;
47 } *columns; /* Would a GList be better? */ 47 } *columns; /* Would a GList be better? */
48 gboolean show_title;
48 }; 49 };
49 50
50 struct _GnTreeClass 51 struct _GnTreeClass
51 { 52 {
52 GntWidgetClass parent; 53 GntWidgetClass parent;
98 99
99 GntTreeRow *gnt_tree_create_row(GntTree *tree, ...); 100 GntTreeRow *gnt_tree_create_row(GntTree *tree, ...);
100 101
101 void gnt_tree_set_col_width(GntTree *tree, int col, int width); 102 void gnt_tree_set_col_width(GntTree *tree, int col, int width);
102 103
104 void gnt_tree_set_column_titles(GntTree *tree, ...);
105
106 void gnt_tree_set_show_title(GntTree *tree, gboolean set);
107
103 G_END_DECLS 108 G_END_DECLS
104 109
105 #endif /* GNT_TREE_H */ 110 #endif /* GNT_TREE_H */