# HG changeset patch # User Sadrul Habib Chowdhury # Date 1156532669 0 # Node ID f3ef96e8428f9444a6077c8d36b05a6052d950ec # Parent b1b76fb9c739486f9d0a223832e51de038442575 [gaim-migrate @ 17032] The entries in the accounts-window, the status-window etc. now should have the same order as in the xml-file. committer: Tailor Script diff -r b1b76fb9c739 -r f3ef96e8428f console/libgnt/gnttree.c --- a/console/libgnt/gnttree.c Fri Aug 25 18:21:22 2006 +0000 +++ b/console/libgnt/gnttree.c Fri Aug 25 19:04:29 2006 +0000 @@ -990,7 +990,19 @@ GntTreeRow *r; r = g_hash_table_lookup(tree->hash, key); 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; + } + } row = gnt_tree_add_row_after(tree, key, row, parent, bigbro); row->choice = TRUE;