Mercurial > pidgin.yaz
comparison console/libgnt/gnttree.h @ 13864:c7d84d4c5afa
[gaim-migrate @ 16328]
Change the internals of GntTree. The change was required to
accommodate expand/collapsing of the groups.
I have added tooltips for Groups as well, which shows the
online/total count. Do we like it?
I have also added emblems at the beginning of the names of
the buddies to indicate their status. Currently I am using
ASCII-emblems ('o' for available, '.' for away, 'x' for
offline (but I am not showing any offline buddies yet)), but
I plan on using some cool unicode-emblems Sean suggested to me.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 24 Jun 2006 10:10:53 +0000 |
parents | c1e3f7c75c3f |
children | cc60d0861337 |
comparison
equal
deleted
inserted
replaced
13863:cf3eb9f311b2 | 13864:c7d84d4c5afa |
---|---|
25 | 25 |
26 struct _GnTree | 26 struct _GnTree |
27 { | 27 { |
28 GntWidget parent; | 28 GntWidget parent; |
29 | 29 |
30 int current; /* current selection */ | 30 GntTreeRow *current; /* current selection */ |
31 | 31 |
32 int top; /* The index in 'list' of the topmost visible item */ | 32 GntTreeRow *top; /* The topmost visible item */ |
33 int bottom; /* The index in 'list' of the bottommost visible item */ | 33 GntTreeRow *bottom; /* The bottommost visible item */ |
34 | 34 |
35 GntTreeRow *root; /* The root of all evil */ | 35 GntTreeRow *root; /* The root of all evil */ |
36 | 36 |
37 GList *list; /* List of GntTreeRow s */ | 37 GList *list; /* List of GntTreeRow s */ |
38 GHashTable *hash; /* XXX: We may need this for quickly referencing the rows */ | 38 GHashTable *hash; /* XXX: We may need this for quickly referencing the rows */ |
64 | 64 |
65 GntTreeRow *gnt_tree_add_row_after(GntTree *tree, void *key, const char *text, void *parent, void *bigbro); | 65 GntTreeRow *gnt_tree_add_row_after(GntTree *tree, void *key, const char *text, void *parent, void *bigbro); |
66 | 66 |
67 gpointer gnt_tree_get_selection_data(GntTree *tree); | 67 gpointer gnt_tree_get_selection_data(GntTree *tree); |
68 | 68 |
69 int gnt_tree_get_selection_index(GntTree *tree); | |
70 | |
71 void gnt_tree_remove(GntTree *tree, gpointer key); | 69 void gnt_tree_remove(GntTree *tree, gpointer key); |
72 | 70 |
73 /* Returns the visible line number of the selected row */ | 71 /* Returns the visible line number of the selected row */ |
74 int gnt_tree_get_selection_visible_line(GntTree *tree); | 72 int gnt_tree_get_selection_visible_line(GntTree *tree); |
75 | 73 |
74 void gnt_tree_change_text(GntTree *tree, gpointer key, const char *text); | |
75 | |
76 G_END_DECLS | 76 G_END_DECLS |
77 | 77 |
78 #endif /* GNT_TREE_H */ | 78 #endif /* GNT_TREE_H */ |