1998-12-02 23:15:49 +08:00
|
|
|
#include <Gtk_LdapTree.h>
|
|
|
|
|
|
|
|
void Gtk_LdapTree::show_impl() {
|
1998-12-04 09:11:12 +08:00
|
|
|
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++) {
|
1999-02-13 07:45:35 +08:00
|
|
|
// item = (Gtk_LdapTreeItem *)GTK_TREE_ITEM((*i));
|
|
|
|
item = (Gtk_LdapTreeItem *)(*i);
|
1998-12-02 23:15:49 +08:00
|
|
|
debug("#%s#\n", item->dn);
|
1999-02-13 07:45:35 +08:00
|
|
|
if (item->get_subtree() == NULL) {
|
|
|
|
debug("ding!\n");
|
1998-12-04 09:11:12 +08:00
|
|
|
tree = item->getSubtree(item->ld, 1);
|
|
|
|
if (tree != NULL) item->set_subtree(*tree);
|
|
|
|
}
|
1998-12-02 23:15:49 +08:00
|
|
|
}
|
|
|
|
debug("done\n");
|
1999-02-13 07:45:35 +08:00
|
|
|
Gtk_Tree::show_impl();
|
1998-12-02 23:15:49 +08:00
|
|
|
}
|