openldap/contrib/gtk-tool/Gtk_LdapTree.cc
Predrag "Pele" Balorda a0277ef986 some minor changes - d'n'd support forthcoming
(but mainly commiting because of the gserver switch)
2000-01-11 20:53:38 +00:00

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();
}