From: <sa...@us...> - 2006-08-25 19:04:38
|
Revision: 17032 Author: sadrul Date: 2006-08-25 12:04:29 -0700 (Fri, 25 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=17032&view=rev Log Message: ----------- The entries in the accounts-window, the status-window etc. now should have the same order as in the xml-file. Modified Paths: -------------- trunk/console/libgnt/gnttree.c Modified: trunk/console/libgnt/gnttree.c =================================================================== --- trunk/console/libgnt/gnttree.c 2006-08-25 18:21:22 UTC (rev 17031) +++ trunk/console/libgnt/gnttree.c 2006-08-25 19:04:29 UTC (rev 17032) @@ -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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |