openldap/contrib/gtk-tool/Gtk_LdapTree.cc

22 lines
550 B
C++
Raw Normal View History

1998-12-02 23:15:49 +08:00
#include <Gtk_LdapTree.h>
void Gtk_LdapTree::show_impl() {
debug("tree show\n");
Gtk_LdapTree *tree = NULL;
Gtk_LdapTreeItem *item = NULL;
Gtk_LdapTree::iterator i;
1998-12-02 23:15:49 +08:00
debug("iterator\n");
for (i=this->begin(); i!=this->end();i++) {
// item = (Gtk_LdapTreeItem *)GTK_TREE_ITEM((*i));
item = (Gtk_LdapTreeItem *)(*i);
1998-12-02 23:15:49 +08:00
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);
}
1998-12-02 23:15:49 +08:00
}
debug("done\n");
Gtk_Tree::show_impl();
1998-12-02 23:15:49 +08:00
}