mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
a0277ef986
(but mainly commiting because of the gserver switch)
27 lines
666 B
C++
27 lines
666 B
C++
#include <Gtk_LdapTree.h>
|
|
|
|
void Gtk_LdapTree::show_impl() {
|
|
debug("Gtk_LdapTree::show_impl()\n");
|
|
Gtk_LdapTree *tree;
|
|
Gtk_LdapTreeItem *item = NULL;
|
|
Gtk_LdapTree::ItemList &items = this->tree();
|
|
Gtk_LdapTree::ItemList::iterator i; // = items.begin();
|
|
debug("iterator\n");
|
|
for (i=items.begin(); i!=items.end();++i) {
|
|
// while (i!=items.end()) {
|
|
item = (Gtk_LdapTreeItem *)(*i);
|
|
debug("new item\n");
|
|
debug("#%s#\n", item->dn);
|
|
if (item->get_subtree() == NULL) {
|
|
debug("ding!\n");
|
|
tree = item->getSubtree(item->ld, 1);
|
|
if (tree != NULL) {
|
|
item->set_subtree(*tree);
|
|
}
|
|
item->setDnd();
|
|
}
|
|
}
|
|
debug("done\n");
|
|
Gtk_Tree::show_impl();
|
|
}
|