Wed, 28 Feb 2007 11:24:59 +0000
Sort the plugin list.
| console/libgnt/gnttree.c | file | annotate | diff | comparison | revisions |
--- a/console/libgnt/gnttree.c Tue Feb 27 09:06:05 2007 +0000 +++ b/console/libgnt/gnttree.c Wed Feb 28 11:24:59 2007 +0000 @@ -1275,16 +1275,20 @@ g_return_val_if_fail(!r || !r->choice, NULL); if (bigbro == NULL) { - r = g_hash_table_lookup(tree->hash, parent); - if (!r) - r = tree->root; - else - r = r->child; - if (r) { - while (r->next) - r = r->next; - bigbro = r->key; - } + if (tree->compare) + bigbro = find_position(tree, key, parent); + else { + r = g_hash_table_lookup(tree->hash, parent); + if (!r) + r = tree->root; + else + r = r->child; + if (r) { + while (r->next) + r = r->next; + bigbro = r->key; + } + } } row = gnt_tree_add_row_after(tree, key, row, parent, bigbro); row->choice = TRUE;