[gq-commit] gq/src schemabrowse.c,1.17,1.18
Status: Beta
Brought to you by:
sur5r
From: <sta...@us...> - 2003-10-05 13:46:56
|
Update of /cvsroot/gqclient/gq/src In directory sc8-pr-cvs1:/tmp/cvs-serv6004 Modified Files: schemabrowse.c Log Message: * Got rid of most hand-knit linked list implementations, replaced them with GLists (errorchains, config->ldapservers, etc.) Index: schemabrowse.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/schemabrowse.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** schemabrowse.c 4 Oct 2003 10:09:39 -0000 1.17 --- schemabrowse.c 5 Oct 2003 13:46:50 -0000 1.18 *************** *** 111,119 **** { struct ldapserver *server; ! int server_cnt; char message[128]; ! ! server_cnt = 0; ! for (server = config->ldapservers ; server ; server = server->next) { add_single_schema_server(tab, server); server_cnt++; --- 111,120 ---- { struct ldapserver *server; ! int server_cnt = 0; char message[128]; ! GList *I; ! ! for (I = config->servers ; I ; I = g_list_next(I)) { ! server = (struct ldapserver *) I->data; add_single_schema_server(tab, server); server_cnt++; *************** *** 374,378 **** if(tree) { ! /* thi#s is a workaround -- lots of GTK warnings if I don't do this :-( */ sel = GTK_TREE_SELECTION(tree); while(sel) { --- 375,379 ---- if(tree) { ! /* this is a workaround -- lots of GTK warnings if I don't do this :-( */ sel = GTK_TREE_SELECTION(tree); while(sel) { |