Mercurial > pidgin
comparison console/libgnt/gnttree.c @ 14384:4a901f5d1312
[gaim-migrate @ 17090]
Contactize the buddylist. But there's no way to move a buddy in some
contact yet. Drag-dropping might be possible, but I'll probably go
with a menuitem in the context-menu.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 31 Aug 2006 00:58:50 +0000 |
parents | a7e29c0b51f4 |
children | 3ac156db9cb6 |
comparison
equal
deleted
inserted
replaced
14383:5f3058c7a7df | 14384:4a901f5d1312 |
---|---|
109 else | 109 else |
110 return row; | 110 return row; |
111 | 111 |
112 while(row->next) | 112 while(row->next) |
113 row = row->next; | 113 row = row->next; |
114 if (row->child) | 114 if (!row->collapsed && row->child) |
115 row = get_last_child(row->child); | 115 row = get_last_child(row->child); |
116 return row; | 116 return row; |
117 } | 117 } |
118 | 118 |
119 static GntTreeRow * | 119 static GntTreeRow * |
1213 void gnt_tree_set_compare_func(GntTree *tree, GCompareFunc func) | 1213 void gnt_tree_set_compare_func(GntTree *tree, GCompareFunc func) |
1214 { | 1214 { |
1215 tree->compare = func; | 1215 tree->compare = func; |
1216 } | 1216 } |
1217 | 1217 |
1218 void gnt_tree_set_expanded(GntTree *tree, void *key, gboolean expanded) | |
1219 { | |
1220 GntTreeRow *row = g_hash_table_lookup(tree->hash, key); | |
1221 if (row) { | |
1222 row->collapsed = !expanded; | |
1223 if (GNT_WIDGET(tree)->window) | |
1224 gnt_widget_draw(GNT_WIDGET(tree)); | |
1225 } | |
1226 } |