]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Remove gtk-tool from the Release Engineering branch until
authorKurt Zeilenga <kurt@openldap.org>
Wed, 10 Feb 1999 20:49:38 +0000 (20:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 10 Feb 1999 20:49:38 +0000 (20:49 +0000)
updated to support the 1.x API.

30 files changed:
contrib/gtk-tool/COPYRIGHT [deleted file]
contrib/gtk-tool/ChangeLog [deleted file]
contrib/gtk-tool/Gtk_LdapItem.h [deleted file]
contrib/gtk-tool/Gtk_LdapServer.cc [deleted file]
contrib/gtk-tool/Gtk_LdapServer.h [deleted file]
contrib/gtk-tool/Gtk_LdapTree.cc [deleted file]
contrib/gtk-tool/Gtk_LdapTree.h [deleted file]
contrib/gtk-tool/Gtk_LdapTreeItem.cc [deleted file]
contrib/gtk-tool/Gtk_LdapTreeItem.h [deleted file]
contrib/gtk-tool/LICENSE [deleted file]
contrib/gtk-tool/Makefile [deleted file]
contrib/gtk-tool/My_Window.cc [deleted file]
contrib/gtk-tool/My_Window.h [deleted file]
contrib/gtk-tool/README [deleted file]
contrib/gtk-tool/TODO [deleted file]
contrib/gtk-tool/common.h [deleted file]
contrib/gtk-tool/cpluscommon.h [deleted file]
contrib/gtk-tool/gtk.h [deleted file]
contrib/gtk-tool/icons/alias_node.h [deleted file]
contrib/gtk-tool/icons/branch_node.h [deleted file]
contrib/gtk-tool/icons/general_node.h [deleted file]
contrib/gtk-tool/icons/leaf_node.h [deleted file]
contrib/gtk-tool/icons/local_server.h [deleted file]
contrib/gtk-tool/icons/remote_server.h [deleted file]
contrib/gtk-tool/icons/rfc822mailgroup_node.h [deleted file]
contrib/gtk-tool/icons/root_node.h [deleted file]
contrib/gtk-tool/main.cc [deleted file]
contrib/gtk-tool/system.h [deleted file]
contrib/gtk-tool/utils.cc [deleted file]
contrib/gtk-tool/utils.h [deleted file]

diff --git a/contrib/gtk-tool/COPYRIGHT b/contrib/gtk-tool/COPYRIGHT
deleted file mode 100644 (file)
index cf1515d..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-Copyright 1998 Predrag Balorda, London, UK
-All rights reserved.
-
-Redistribution and use in source and binary forms are permitted only
-as authorized by the OpenLDAP Public License.  A copy of this
-license is available at http://www.OpenLDAP.org/license.html or
-in file LICENSE in the top-level directory of the distribution.
-
diff --git a/contrib/gtk-tool/ChangeLog b/contrib/gtk-tool/ChangeLog
deleted file mode 100644 (file)
index fb97b26..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-ChangeLog for gtk-tool
-
-03/12/1998 - Pele
-       * Added support for multiple servers (via multiple -s options)
-       * More testing
-       * Started experimenting with status bar for display of various info
-       * Got rid of many warning and error messages generate by gtk
-       * Added a new icon for objectclass=alias;
-       * Display of some ldap options aquired with ldap_get_option when
-       server selected.
-       * Traversing set to only 1 subtree (then 1 by 1);
-       * Started experimenting with a progress bar for traversal
-       (so users don't get bored while waiting for subtrees to be aquired and
-       constructed)
-
-02/12/1998 - Pele
-       * Added Gtk_LdapTree class
-       * Added utils (with debug only)
-       * "Smart" traversing of ldap tree (only 2-deep, then add 2 subtrees as
-       the tree gets expanded)
-       * Lots of updates and bug-fixes
-
-29/11/1998 - Pele
-       * Added Gtk_LdapServer class
-       * Started using cn=config, ldap_get_option (not sure about get_option
-       though, cn=config looks much nicer for the future-proofing)
-       * Can traverse, display and serve two (or possibly/hopefully) more
-       databases on the local machine - remote machines also possible - 
-       need to use "-s hostname"
-       * The program needs the "-s" switch! Without it it won't run (temporary
-       "feature")
-
-28/11/1998 - Pele
-       * Fixes, enhancements, started using ldap utility api
-       * It now traverses the whole tree at startup, not sure if it's smart
-       but I did it because of something that has no relevance to network
-       traffic
-
-27/11/1998 - Pele
-       * Added viewports, both sides now scroll automatically
-       * Brought back the "cache" stuff, now data gets reused if it's allready
-       available without redundant searches/listings.
-       * Editing pixmaps by hand is so much, er, fun!
-       * Miniscule fixes
-
-26/11/1998 - Pele
-       * Added nice icons in the browser pane - looks decent now.
-       * Fixed scrolling in the data (right) pane - now scrolls if there is
-       a long tab
-       * removed class My_Scroller
-       * removed file Gtk_LdapItem.cc (useless)
-       * commented-out the part where data gets reused instead of re-querying
-       the server, stupid I know, but for the time being if resolves some
-       problems with replacement of right pane.
-       * Misc. fixes
-
-26/11/1998 - Pele
-       * First appearance of ChangeLog
-       * Fixed removal of scrolled window on the right hand side
-         thus making gtk-tool a viable project to be worked on
-       * added command-line parameter parsing - now accepts
-         -s for server, -p for port, -b for baseDN
diff --git a/contrib/gtk-tool/Gtk_LdapItem.h b/contrib/gtk-tool/Gtk_LdapItem.h
deleted file mode 100644 (file)
index 73c1a7c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef GTK_LDAPITEM_H
-#define GTK_LDAPITEM_H
-#include "cpluscommon.h"
-#include "gtk.h"
-#include <Gtk_LdapTreeItem.h>
-class Gtk_LdapTreeItem;
-
-class Gtk_LdapItem {
-public:
-       Gtk_Tree *tree;
-       Gtk_LdapTreeItem *treeitem;
-       G_List<gchar> *value_list;
-       char *attribute_name;
-       G_List<Gtk_LdapItem> *attribute_list;
-       char *entry_name;
-};
-#endif
diff --git a/contrib/gtk-tool/Gtk_LdapServer.cc b/contrib/gtk-tool/Gtk_LdapServer.cc
deleted file mode 100644 (file)
index 3c91b61..0000000
+++ /dev/null
@@ -1,345 +0,0 @@
-#include "Gtk_LdapServer.h"
-#include <gtk--/base.h>
-
-Gtk_LdapServer::Gtk_LdapServer() : Gtk_TreeItem() {
-       this->hostname = NULL;
-       this->par = NULL;
-       this->base_dn = NULL;
-       this->port = 0;
-}
-
-Gtk_LdapServer::Gtk_LdapServer(My_Window *w, char *h, int p) : Gtk_TreeItem() {
-       char *s, *s2;
-       this->par = w;
-       this->hostname = h;
-       this->port = p;
-       this->notebook = NULL;
-       debug("%s %i\n", this->hostname, this->port);
-       this->setType(1);
-       this->getConfig();
-}
-
-Gtk_LdapServer::Gtk_LdapServer(GtkTreeItem *t) : Gtk_TreeItem(t) {
-}
-
-Gtk_LdapServer::~Gtk_LdapServer() {
-       debug("Bye\n");
-       delete this;
-}
-
-void Gtk_LdapServer::setType(int t) {
-       debug("Gtk_LdapServer::setType(%i)\n", t);
-       Gtk_Pixmap *xpm_icon;
-       Gtk_Label *label;
-       char *c = NULL;
-       if (this->getchild() != NULL) {
-               xpm_label = new Gtk_HBox(GTK_HBOX(this->getchild()->gtkobj()));
-               xpm_label->remove_c(xpm_label->children()->nth_data(0));
-               xpm_label->remove_c(xpm_label->children()->nth_data(0));
-       }
-       else xpm_label = new Gtk_HBox();
-       debug(this->hostname);
-       if (strcasecmp(this->hostname,"localhost") == 0)
-               xpm_icon=new Gtk_Pixmap(*xpm_label, local_server);
-       else xpm_icon=new Gtk_Pixmap(*xpm_label, remote_server);
-//     sprintf(c, "%s:%i", this->hostname, this->port);
-//     printf("%s\n", c);
-       label = new Gtk_Label(this->hostname);
-       xpm_label->pack_start(*xpm_icon, false, false, 1);
-       xpm_label->pack_start(*label, false, false, 1);
-       if (this->getchild() == NULL) this->add(xpm_label);
-       label->show();
-       xpm_label->show();
-       xpm_icon->show();
-}
-
-int Gtk_LdapServer::showDetails() {
-       debug("Gtk_LdapServer::showDetails()\n");
-       if (this->notebook != NULL) {
-//             debug("Have notebook here");
-               if (par->viewport->getchild() != NULL) {
-//                     debug(" and viewport has children");
-                       par->viewport->remove_c(par->viewport->getchild()->gtkobj());
-//                     debug(" which have been removed");
-               }
-//             else debug(" and viewport without children");
-               par->viewport->add(this->notebook);
-               this->notebook->show();
-               par->viewport->show();
-               return 0;
-       }
-       if (this->getOptions() != 0) return 1;
-       this->showDetails();
-//     debug("done\n");
-       return 0;
-}
-
-int Gtk_LdapServer::getConfig() {
-       debug("Gtk_LdapServer::getConfig()\n");
-       int error, entriesCount;
-       LDAPMessage *entry, *result_identifier;
-       BerElement *ber;
-       char *attribute, **t;
-
-       if ((this->ld = ldap_open(this->hostname, this->port)) == NULL) {
-               perror("connection");
-       }
-
-       error = ldap_search_s(this->ld, "cn=config", LDAP_SCOPE_BASE, "objectclass=*", NULL, 0, &result_identifier);    
-       entriesCount = ldap_count_entries(this->ld, result_identifier);
-       if (entriesCount == 0) {
-               return 0;
-       }
-
-       debug("%i entry\n", entriesCount);
-       for (entry = ldap_first_entry(this->ld, result_identifier); entry != NULL; entry = ldap_next_entry(this->ld, result_identifier)) {
-               for (attribute = ldap_first_attribute(this->ld, entry, &ber); attribute != NULL; attribute = ldap_next_attribute(this->ld, entry, ber)) {
-                       debug("Attrib: %s\n", attribute);
-                       if (strcasecmp(attribute, "database") == 0) {
-                               debug("have database here\n");
-                               this->databases = new G_List<char>;
-                               t = ldap_get_values(this->ld, entry, attribute);
-                               for (int i=0; i<ldap_count_values(t); i++) {
-                                       this->databases->append(strdup(t[i]));
-                               }
-                               ldap_value_free(t);
-                               debug("databases loaded\n");
-                               for (int i=0; i<this->databases->length(); i++) {
-                                       debug("database(%i) %s\n", i, this->databases->nth_data(i));
-                               }       
-                       }
-               }
-               debug("entry done\n");
-       }
-//     debug("got %i entries\n", entriesCount);
-       return entriesCount;
-}
-
-char* Gtk_LdapServer::getOptDescription(int option) {
-       debug("Gtk_LdapServer::getOptDescription(%i) ", option);
-       char *c;
-       switch (option) {
-               case LDAP_OPT_API_INFO: c = "API info"; break;
-               case LDAP_OPT_CLIENT_CONTROLS: c = "Client controls"; break;
-               case LDAP_OPT_DEREF: c = "Dereference"; break;
-               case LDAP_OPT_DESC: c = "Description"; break;
-               case LDAP_OPT_DNS: c = "DNS Lookup"; break;
-               case LDAP_OPT_ERROR_NUMBER: c = "Error number"; break;
-               case LDAP_OPT_ERROR_STRING: c = "Error string"; break;
-               case LDAP_OPT_SIZELIMIT: c = "Size limit"; break;
-               case LDAP_OPT_TIMELIMIT: c = "Time limit"; break;
-               case LDAP_OPT_REFERRALS: c = "Referrals"; break;
-               case LDAP_OPT_RESTART: c = "Started"; break;
-               case LDAP_OPT_PROTOCOL_VERSION: c = "Protocol version"; break;
-               case LDAP_OPT_HOST_NAME: c = "Host name"; break;
-               case LDAP_OPT_SERVER_CONTROLS: c = "Server controls"; break;
-               default: c = "No description"; break;
-       }
-       debug("%s\n", c);
-       return c;
-}
-
-int Gtk_LdapServer::getOptType(int option) {
-       debug("Gtk_LdapServer::getOptType(%i) ", option);
-       int type; /* 0 = int, 1 = string, 2 = boolean */
-       switch(option) {
-               /* ints */
-               case LDAP_OPT_DEREF:
-               case LDAP_OPT_DESC:
-               case LDAP_OPT_SIZELIMIT:        
-               case LDAP_OPT_TIMELIMIT:
-               case LDAP_OPT_ERROR_NUMBER:
-               case LDAP_OPT_PROTOCOL_VERSION: type = 0; break;
-               /* strings */
-               case LDAP_OPT_ERROR_STRING:
-               case LDAP_OPT_HOST_NAME: type = 1; break;
-               /* bools */
-               case LDAP_OPT_REFERRALS:
-               case LDAP_OPT_DNS:
-               case LDAP_OPT_RESTART: type = 2; break;
-               case LDAP_OPT_SERVER_CONTROLS:
-               case LDAP_OPT_CLIENT_CONTROLS:
-               case LDAP_OPT_API_INFO:
-               default: type = 0; break;
-       }
-       debug("%i\n", type);
-       return type;
-}
-
-int Gtk_LdapServer::getOptions() {
-       debug("Gtk_LdapServer::getOptions()\n");
-       if (this->notebook != NULL) return 0;
-       Gtk_HBox *hbox, *mini_hbox;
-       Gtk_VBox *vbox, *mini_vbox;
-       Gtk_Table *table;
-       Gtk_Label *label;       
-       Gtk_RadioButton *radio1, *radio2;
-       char *s_value;
-       int i_value;
-       char *thing;
-       int things[9] = {
-               LDAP_OPT_API_INFO,
-       //      LDAP_OPT_CLIENT_CONTROLS,
-       //      LDAP_OPT_DESC,
-               LDAP_OPT_DEREF,
-               LDAP_OPT_DNS,
-       //      LDAP_OPT_ERROR_NUMBER,
-       //      LDAP_OPT_ERROR_STRING,
-               LDAP_OPT_HOST_NAME,
-               LDAP_OPT_PROTOCOL_VERSION,
-               LDAP_OPT_REFERRALS,
-               LDAP_OPT_RESTART,
-       //      LDAP_OPT_SERVER_CONTROLS,
-               LDAP_OPT_SIZELIMIT,
-               LDAP_OPT_TIMELIMIT
-       };
-
-/*     if (GTK_TREE_ITEM(this->gtkobj())->subtree == NULL) {
-               this->getSubtree();
-       } */
-
-//     debug("getting ldap options");
-//     vbox = new Gtk_VBox();
-       table = new Gtk_Table(11, 2, TRUE);
-
-       for (int i=0; i<9; i++) {
-       //      debug("%i\n", i);
-               hbox = new Gtk_HBox(TRUE, 2);
-               hbox->border_width(2);
-               thing = this->getOptDescription(things[i]);
-               label = new Gtk_Label(thing);
-               label->set_justify(GTK_JUSTIFY_LEFT);
-               label->set_alignment(0, 0);
-               hbox->pack_start(*label);
-               label->show();
-               int tipus = this->getOptType(things[i]);
-               switch (tipus) {
-                       case 0:
-                               ldap_get_option(NULL, things[i], &i_value);
-                               debug("%s value %d\n", thing, i_value);
-                               sprintf(s_value, "%d", i_value);
-                               label = new Gtk_Label(s_value);
-                               label->set_justify(GTK_JUSTIFY_LEFT);
-                               label->set_alignment(0, 0);
-                               hbox->pack_end(*label);
-                               label->show();
-                               break;
-                       case 1:
-                               ldap_get_option(this->ld, things[i], &s_value);
-                               label = new Gtk_Label(s_value);
-                               label->set_justify(GTK_JUSTIFY_LEFT);
-                               label->set_alignment(0, 0);
-                               hbox->pack_end(*label);
-                               label->show();
-                               break;
-                       case 2:
-                               ldap_get_option(this->ld, things[i], &i_value);
-                       //      sprintf(s_value, "%s", i_value == (int) LDAP_OPT_ON ? "on" : "off");
-                       //      label = new Gtk_Label(s_value);
-                               radio1 = new Gtk_RadioButton(static_cast<GSList*>(0), "Enabled");
-                               radio2 = new Gtk_RadioButton(*radio1, "Disabled");
-                               if (i_value == 1) radio1->set_state(true);
-                               else radio2->set_state(true);
-                               mini_hbox = new Gtk_HBox(FALSE, 2);
-                               mini_hbox->border_width(2);
-                               mini_hbox->pack_start(*radio1);
-                               radio1->show();
-                               mini_hbox->pack_end(*radio2);
-                               radio2->show();
-                               hbox->pack_end(*mini_hbox);
-                               mini_hbox->show();
-                               break;
-                       default:
-                               label = new Gtk_Label("Nothing");
-                               label->set_justify(GTK_JUSTIFY_LEFT);
-                               label->set_alignment(0, 0);
-                               hbox->pack_end(*label);
-                               label->show();
-                               break;
-               }
-       //      hbox->pack_end(*label);
-       //      label->show();
-               table->attach_defaults(*hbox, 0, 2, i, i+1);
-               hbox->show();
-       }
-       table->border_width(2);
-       this->notebook = new Gtk_Frame("LDAP Options");
-       this->notebook->add(*table);
-       table->show();
-       return 0;
-}
-
-Gtk_Tree* Gtk_LdapServer::getSubtree() {
-       debug("Gtk_LdapServer::getSubtree()\n");
-       Gtk_LdapTree *tree, *subtree;
-       Gtk_LdapTreeItem *treeitem;
-       int entries;
-
-       debug("this->hostname=%s\n", this->hostname);
-       debug("this->port=%i", this->port);
-
-       char *c;
-       char *tok;
-
-       int len = this->databases->length();
-       debug("this->databases->length()=%i\n", len);
-
-       tree = new Gtk_LdapTree();
-       for (int i=0; i<len; i++) {
-               tok = strdup(this->databases->nth_data(i));
-               tok = strtok(tok, ":");
-       //      c = strtok(NULL, " ");
-               c = strtok(NULL, "\0");
-               debug("database %i %s\n", i, c);
-               treeitem = new Gtk_LdapTreeItem(c, this->par, this->ld);
-               subtree = treeitem->getSubtree(this->ld, 1);
-               debug("inserting %s into %s\n", treeitem->rdn, this->hostname);
-               tree->append(*treeitem);
-               treeitem->set_subtree(*subtree);
-               treeitem->show();
-       //      tree->show();
-       }
-//     this->set_subtree(*tree);
-       debug("getTree() done\n");
-       return tree;
-}
-
-void Gtk_LdapServer::show_impl() {
-       debug("%s showed\n", this->hostname);
-       Gtk_c_signals_Item *sig=(Gtk_c_signals_Item *)internal_getsignalbase();
-       sig->show(GTK_WIDGET(gtkobj()));
-}
-
-void Gtk_LdapServer::select_impl() {
-       debug("%s selected\n", this->hostname);
-       Gtk_c_signals_Item *sig=(Gtk_c_signals_Item *)internal_getsignalbase();
-       if (this->showDetails() == 0) debug("%s select_impl done\n", this->hostname);
-       if (!sig->select) return;
-       sig->select(GTK_ITEM(gtkobj()));
-}
-
-void Gtk_LdapServer::collapse_impl() {
-       debug("%s collapsed\n", this->hostname);
-       Gtk_c_signals_TreeItem *sig=(Gtk_c_signals_TreeItem *)internal_getsignalbase();
-       if (!sig->collapse) return;
-       sig->collapse(GTK_TREE_ITEM(gtkobj()));
-//     gtk_widget_hide(GTK_WIDGET(GTK_TREE(GTK_TREE_ITEM (this->gtkobj())->subtree)));
-}
-
-void Gtk_LdapServer::expand_impl() {
-       debug("%s expanded\n", this->hostname);
-       Gtk_c_signals_TreeItem *sig=(Gtk_c_signals_TreeItem *)internal_getsignalbase();
-       if (!sig->expand) return;
-       sig->expand(GTK_TREE_ITEM(gtkobj()));
-//     Gtk_Tree *t;
-//     t = new Gtk_Tree(GTK_TREE(GTK_TREE_ITEM(this->gtkobj())->subtree));
-//     bool vis = t->visible();
-//     if (vis == false) {
-//             gtk_widget_show(GTK_WIDGET(GTK_TREE(GTK_TREE_ITEM (this->gtkobj())->subtree)));
-//             cout << this->dn << " expanded" << endl;
-//     }
-//     else {
-//             gtk_widget_hide(GTK_WIDGET(GTK_TREE(GTK_TREE_ITEM (this->gtkobj())->subtree)));
-//             cout << this->dn << " collapsed" << endl;
-//     }
-}
diff --git a/contrib/gtk-tool/Gtk_LdapServer.h b/contrib/gtk-tool/Gtk_LdapServer.h
deleted file mode 100644 (file)
index 3f265b9..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef GTK_LDAPSERVER_H
-#define GTK_LDAPSERVER_H
-#include "gtk.h"
-#include "utils.h"
-#include <My_Window.h>
-#include <Gtk_LdapTree.h>
-#include <Gtk_LdapTreeItem.h>
-#include <lber.h>
-#include <ldap.h>
-#include "icons/local_server.h"
-#include "icons/remote_server.h"
-
-#define LOCAL_SERVER 1
-#define REMOTE_SERVER 2
-
-class My_Window;
-
-class Gtk_LdapServer : public Gtk_TreeItem {
-public:
-       char *dn;
-       char *hostname;
-       LDAPMessage **thing;
-       LDAP *ld;
-       char *host;
-       char *base_dn;
-       int c, port;
-       My_Window *par;
-//     Gtk_Notebook *notebook;
-       Gtk_Frame *notebook;
-       Gtk_HBox *xpm_label;
-//     Gtk_Tree *subtree;
-       Gtk_Menu *popup;
-       G_List<char> *databases;
-       Gtk_LdapServer();
-       Gtk_LdapServer(My_Window *w, char *c, int p);
-       Gtk_LdapServer(GtkTreeItem *t);
-       ~Gtk_LdapServer();
-       void setType(int t);
-       int getConfig();
-       Gtk_Tree* getSubtree();
-       char* getOptDescription(int option);
-       int getOptType(int option);
-       int getOptions();
-       int showDetails();
-       void show_impl();
-       void select_impl();
-       void collapse_impl();
-       void expand_impl();
-};
-#endif
diff --git a/contrib/gtk-tool/Gtk_LdapTree.cc b/contrib/gtk-tool/Gtk_LdapTree.cc
deleted file mode 100644 (file)
index 18aab88..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#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;
-       debug("iterator\n");
-       for (i=this->begin(); i!=this->end();i++) {
-               item = (Gtk_LdapTreeItem *)GTK_TREE_ITEM((*i));
-               debug("#%s#\n", item->dn);
-               if (item->gtkobj()->subtree == NULL) {
-                       tree = item->getSubtree(item->ld, 1);
-                       if (tree != NULL) item->set_subtree(*tree);
-               }
-       }
-       debug("done\n");
-       Gtk_c_signals_Tree *sig=(Gtk_c_signals_Tree *)internal_getsignalbase(); 
-       sig->show(GTK_WIDGET(gtkobj()));
-}
diff --git a/contrib/gtk-tool/Gtk_LdapTree.h b/contrib/gtk-tool/Gtk_LdapTree.h
deleted file mode 100644 (file)
index a0a713b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef GTK_LDAP_TREE_H
-#define GTK_LDAP_TREE_H
-#include <gtk--/tree.h>
-#include "utils.h"
-#include <Gtk_LdapTreeItem.h>
-
-class Gtk_LdapTree : public Gtk_Tree {
-       void show_impl();
-};
-#endif
diff --git a/contrib/gtk-tool/Gtk_LdapTreeItem.cc b/contrib/gtk-tool/Gtk_LdapTreeItem.cc
deleted file mode 100644 (file)
index 129fc6f..0000000
+++ /dev/null
@@ -1,213 +0,0 @@
-#include "Gtk_LdapTreeItem.h"
-#include <gtk--/base.h>
-
-Gtk_LdapTreeItem::Gtk_LdapTreeItem() : Gtk_TreeItem() {
-       this->objectClass = NULL;
-}
-
-Gtk_LdapTreeItem::Gtk_LdapTreeItem(char *c, My_Window *w, LDAP *ld) : Gtk_TreeItem() {
-       debug("Gtk_LdapTreeItem::Gtk_LdapTreeItem(%s)\n", c);
-       char **s;
-       this->dn = c;
-       s = ldap_explode_dn(this->dn, 1);
-       this->rdn = g_strdup_printf("%s", s[0]);
-       this->par = w;
-       this->ld = ld;
-       this->objectClass = NULL;
-       this->getDetails();
-}
-
-Gtk_LdapTreeItem::Gtk_LdapTreeItem(GtkTreeItem *t) : Gtk_TreeItem(t) {
-}
-
-Gtk_LdapTreeItem::~Gtk_LdapTreeItem() {
-       cout << "Bye" << endl;
-       delete this;
-}
-
-Gtk_LdapTree* Gtk_LdapTreeItem::getSubtree(LDAP *ld, int counter) {
-       debug("Gtk_LdapTreeItem::getSubtree(%s)\n", this->dn);
-       if (counter <= 0) return NULL;
-       if (this->gtkobj()->subtree != NULL) {
-               return (Gtk_LdapTree *)GTK_TREE(this->gtkobj()->subtree);
-       }
-       counter--;
-       Gtk_LdapTree *subtree = NULL, *tree = NULL;
-       Gtk_LdapTreeItem *subtreeitem = NULL;
-       LDAPMessage *r_i = NULL, *entry = NULL;
-       gchar *c;
-       char **s;
-       int entriesCount = 0, error;
-
-       this->ld = ld;
-       error = ldap_search_s(this->ld, this->dn, LDAP_SCOPE_ONELEVEL, "objectclass=*", NULL, 0, &r_i);
-//     printf("%s\n", ldap_err2string(error));
-       entriesCount = ldap_count_entries(this->ld, r_i);
-       debug("%i results\n", entriesCount);
-       if (entriesCount != 0) { 
-               tree = new Gtk_LdapTree();
-               tree->set_selection_mode(GTK_SELECTION_BROWSE);
-               tree->set_view_mode(GTK_TREE_VIEW_ITEM);
-               tree->set_view_lines(false);
-               entry = ldap_first_entry(this->ld, r_i);
-       //      float i = 1;
-       //      float percent = 100/entriesCount;
-       //      cout << "percent is " << percent << endl;
-       //      this->par->progress.update(0);
-       //      this->par->progress.show();
-               while (entry != NULL) {
-                       subtreeitem = new Gtk_LdapTreeItem(ldap_get_dn(this->ld, entry), this->par, this->ld);
-                       subtree = subtreeitem->getSubtree(this->ld, counter);
-                       debug("inserting %s into %s\n",subtreeitem->rdn,this->rdn);
-                       tree->append(*subtreeitem);
-                       subtreeitem->show();
-                       if (subtree != NULL) subtreeitem->set_subtree(*subtree);
-                       debug("done\n");
-                       entry = ldap_next_entry(this->ld, entry);
-               //      gfloat pvalue = (i*percent)/100;
-               //      cout << pvalue << " %" << endl;
-               //      this->par->progress.update(pvalue);
-               //      this->par->progress.show();
-               //      i++;
-               }
-       //      this->set_subtree(*tree);
-       //      this->par->progress.update(0);
-       //      this->par->progress->show();
-       }
-//     this->getDetails();
-       debug("done\n");
-       return tree;
-}
-
-void Gtk_LdapTreeItem::setType(int t) {
-       debug("Gtk_LdapTreeItem::setType(%i)\n", t);
-       Gtk_Pixmap *xpm_icon;
-       Gtk_Label *label;
-       if (this->getchild() != NULL) {
-               xpm_label = new Gtk_HBox(GTK_HBOX(this->getchild()->gtkobj()));
-               xpm_label->remove_c(xpm_label->children()->nth_data(0));
-               xpm_label->remove_c(xpm_label->children()->nth_data(0));
-       }
-       else xpm_label = new Gtk_HBox();
-       if (strcasecmp(this->objectClass,"organization") == 0)
-               xpm_icon=new Gtk_Pixmap(*xpm_label, root_node);
-       else if (strcasecmp(this->objectClass,"organizationalunit") == 0)
-               xpm_icon=new Gtk_Pixmap(*xpm_label, branch_node);
-       else if (strcasecmp(this->objectClass,"person") == 0)
-               xpm_icon=new Gtk_Pixmap(*xpm_label, leaf_node);
-       else if (strcasecmp(this->objectClass,"alias") == 0)
-               xpm_icon=new Gtk_Pixmap(*xpm_label, alias_node);
-       else xpm_icon=new Gtk_Pixmap(*xpm_label, general_node);
-       label = new Gtk_Label(this->rdn);
-       xpm_label->pack_start(*xpm_icon, false, false, 1);
-       xpm_label->pack_start(*label, false, false, 1);
-       if (this->getchild() == NULL) this->add(xpm_label);
-       label->show();
-       xpm_label->show();
-       xpm_icon->show();
-}
-
-int Gtk_LdapTreeItem::showDetails() {
-       debug("Gtk_LdapTreeItem::showDetails()\n");
-       if (this->notebook != NULL) {
-               if (par->viewport->getchild() != NULL) {
-                       par->viewport->remove_c(par->viewport->getchild()->gtkobj());
-               }
-               par->viewport->add(this->notebook);
-               this->notebook->show();
-               par->viewport->show();
-               return 0;
-       }
-       else this->getDetails();
-       this->showDetails();
-       return 0;
-}
-
-int Gtk_LdapTreeItem::getDetails() {
-       debug("Gtk_LdapTreeItem::getDetails()\n");
-       int error, entriesCount;
-       BerElement *ber;
-       LDAPMessage *entry;
-       char *attribute, **values;
-       Gtk_CList *table;
-       Gtk_Label *label;
-       GList *child_list;
-       Gtk_Notebook *g;
-       Gtk_Viewport *viewport;
-       error = ldap_search_s(this->ld, this->dn, LDAP_SCOPE_BASE, "objectclass=*", NULL, 0, &this->result_identifier);
-       entriesCount = ldap_count_entries(this->ld, this->result_identifier);
-       if (entriesCount == 0) return 0;
-       notebook = new Gtk_Notebook();
-       notebook->set_tab_pos(GTK_POS_LEFT);
-       const gchar *titles[] = { "values" };
-       
-       for (entry = ldap_first_entry(ld, result_identifier); entry != NULL; entry = ldap_next_entry(ld, result_identifier)) {
-               for (attribute = ldap_first_attribute(ld, entry, &ber); attribute != NULL; attribute = ldap_next_attribute(ld, entry, ber)) {
-                       values = ldap_get_values(ld, entry, attribute);
-                       if (strcasecmp(attribute, "objectclass") == 0) {
-                               if (strcasecmp(values[0],"top") == 0)
-                                       this->objectClass = strdup(values[1]);
-                               else this->objectClass = values[0];
-                       }
-                       table = new Gtk_CList(1, titles);
-                       for (int i=0; i<ldap_count_values(values); i++) {
-                               const gchar *t[] = { values[i] };
-                               table->append(t);
-                       }
-                       ldap_value_free(values);
-                       label = new Gtk_Label(attribute);
-                       label->set_alignment(0, 0);
-                       label->set_justify(GTK_JUSTIFY_LEFT);
-                       notebook->append_page(*table, *label);
-                       table->show();
-                       label->show();
-               }
-       }
-       this->setType(1);
-       debug("done\n");
-       return 0;
-}
-
-void Gtk_LdapTreeItem::show_impl() {
-       debug("%s showed\n", this->dn);
-       Gtk_c_signals_TreeItem *sig=(Gtk_c_signals_TreeItem *)internal_getsignalbase();
-       sig->show(GTK_WIDGET(gtkobj()));
-}
-
-void Gtk_LdapTreeItem::select_impl() {
-       debug("%s selected\n", this->dn);
-//     gtk_item_select(GTK_ITEM(GTK_TREE_ITEM(this->gtkobj())));
-       Gtk_c_signals_Item *sig=(Gtk_c_signals_Item *)internal_getsignalbase();
-       if (!sig->select) return;
-       sig->select(GTK_ITEM(gtkobj()));
-       this->showDetails();
-}
-
-void Gtk_LdapTreeItem::collapse_impl() {
-       debug("%s collapsed\n", this->dn);
-       Gtk_c_signals_TreeItem *sig=(Gtk_c_signals_TreeItem *)internal_getsignalbase();
-       if (!sig->collapse) return;
-       sig->collapse(GTK_TREE_ITEM(gtkobj()));
-//     gtk_widget_hide(GTK_WIDGET(GTK_TREE(GTK_TREE_ITEM (this->gtkobj())->subtree)));
-}
-
-void Gtk_LdapTreeItem::expand_impl() {
-       debug("%s expanded\n",this->dn);
-       Gtk_LdapTreeItem *item;
-       G_List<GtkWidget> *list;
-       Gtk_Tree *tree;
-       Gtk_c_signals_TreeItem *sig=(Gtk_c_signals_TreeItem *)internal_getsignalbase();
-       if (!sig->expand) return;
-       sig->expand(GTK_TREE_ITEM(gtkobj()));
-//     Gtk_Tree *t;
-//     t = new Gtk_Tree(GTK_TREE(GTK_TREE_ITEM(this->gtkobj())->subtree));
-//     bool vis = t->visible();
-//     if (vis == false) {
-//             gtk_widget_show(GTK_WIDGET(GTK_TREE(GTK_TREE_ITEM (this->gtkobj())->subtree)));
-//             cout << this->dn << " expanded" << endl;
-//     }
-//     else {
-//             gtk_widget_hide(GTK_WIDGET(GTK_TREE(GTK_TREE_ITEM (this->gtkobj())->subtree)));
-//             cout << this->dn << " collapsed" << endl;
-//     }
-}
diff --git a/contrib/gtk-tool/Gtk_LdapTreeItem.h b/contrib/gtk-tool/Gtk_LdapTreeItem.h
deleted file mode 100644 (file)
index 63aa1f6..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef GTK_LDAPTREEITEM_H
-#define GTK_LDAPTREEITEM_H
-#include "gtk.h"
-#include "utils.h"
-#include <My_Window.h>
-#include <Gtk_LdapTree.h>
-#include <lber.h>
-#include <ldap.h>
-#include "icons/root_node.h"
-#include "icons/branch_node.h"
-#include "icons/leaf_node.h"
-#include "icons/alias_node.h"
-#include "icons/general_node.h"
-
-#define ROOT_NODE 1
-#define BRANCH_NODE 2
-#define LEAF_NODE 3
-
-class My_Window;
-class Gtk_LdapTree;
-
-class Gtk_LdapTreeItem : public Gtk_TreeItem {
-public:
-       char *dn;
-       char *rdn;
-       char *objectClass;
-       LDAP *ld;
-       LDAPMessage *result_identifier;
-       My_Window *par;
-       Gtk_Notebook *notebook;
-       Gtk_HBox *xpm_label;
-       Gtk_LdapTreeItem();
-       Gtk_LdapTreeItem(char *c, My_Window *w, LDAP *ld);
-       Gtk_LdapTreeItem(GtkTreeItem *t);
-       ~Gtk_LdapTreeItem();
-       Gtk_LdapTree* getSubtree(LDAP *ld, int i);
-       void setType(int t);
-       int getDetails();
-       int showDetails();
-       void show_impl();
-       void select_impl();
-       void collapse_impl();
-       void expand_impl();
-};
-#endif
diff --git a/contrib/gtk-tool/LICENSE b/contrib/gtk-tool/LICENSE
deleted file mode 100644 (file)
index 5731d2c..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-The OpenLDAP Public License
-
-Version 1.2, 1 September 1998
-Copyright 1998, The OpenLDAP Foundation.
-All Rights Reserved.
-
-Note:
-       This license is derived from the "Artistic License" as distributed
-       with the Perl Programming Language.  As differences may exist, the
-       complete license should be read.
-
-PREAMBLE
-
-The intent of this document is to state the conditions under which a
-Package may be copied, such that the Copyright Holder maintains some
-semblance of artistic control over the development of the package,
-while giving the users of the package the right to use and distribute
-the Package in a more-or-less customary fashion, plus the right to make
-reasonable modifications.
-
-Definitions:
-
-       "Package" refers to the collection of files distributed by the
-       Copyright Holder, and derivatives of that collection of files
-       created through textual modification.
-
-       "Standard Version" refers to such a Package if it has not been
-       modified, or has been modified in accordance with the wishes
-       of the Copyright Holder.
-
-       "Copyright Holder" is whoever is named in the copyright or
-       copyrights for the package.
-
-       "You" is you, if you're thinking about copying or distributing
-       this Package.
-
-       "Reasonable copying fee" is whatever you can justify on the
-       basis of media cost, duplication charges, time of people involved,
-       and so on.  (You will not be required to justify it to the
-       Copyright Holder, but only to the computing community at large
-       as a market that must bear the fee.)
-
-       "Freely Available" means that no fee is charged for the item
-       itself, though there may be fees involved in handling the item.
-       It also means that recipients of the item may redistribute it
-       under the same conditions they received it.
-
-1. You may make and give away verbatim copies of the source form of the
-Standard Version of this Package without restriction, provided that you
-duplicate all of the original copyright notices and associated disclaimers.
-
-2. You may apply bug fixes, portability fixes and other modifications
-derived from the Public Domain or from the Copyright Holder.  A Package
-modified in such a way shall still be considered the Standard Version.
-
-3. You may otherwise modify your copy of this Package in any way, provided
-that you insert a prominent notice in each changed file stating how and
-when you changed that file, and provided that you do at least ONE of the
-following:
-
-    a) place your modifications in the Public Domain or otherwise make them
-    Freely Available, such as by posting said modifications to Usenet or
-    an equivalent medium, or placing the modifications on a major archive
-    site such as uunet.uu.net, or by allowing the Copyright Holder to include
-    your modifications in the Standard Version of the Package.
-
-    b) use the modified Package only within your corporation or organization.
-
-    c) rename any non-standard executables so the names do not conflict
-    with standard executables, which must also be provided, and provide
-    a separate manual page for each non-standard executable that clearly
-    documents how it differs from the Standard Version.
-
-    d) make other distribution arrangements with the Copyright Holder.
-
-4. You may distribute the programs of this Package in object code or
-executable form, provided that you do at least ONE of the following:
-
-    a) distribute a Standard Version of the executables and library files,
-    together with instructions (in the manual page or equivalent) on where
-    to get the Standard Version.
-
-    b) accompany the distribution with the machine-readable source of
-    the Package with your modifications.
-
-    c) accompany any non-standard executables with their corresponding
-    Standard Version executables, giving the non-standard executables
-    non-standard names, and clearly documenting the differences in manual
-    pages (or equivalent), together with instructions on where to get
-    the Standard Version.
-
-    d) make other distribution arrangements with the Copyright Holder.
-
-5. You may charge a reasonable copying fee for any distribution of this
-Package.  You may charge any fee you choose for support of this Package.
-You may not charge a fee for this Package itself.  However,
-you may distribute this Package in aggregate with other (possibly
-commercial) programs as part of a larger (possibly commercial) software
-distribution provided that you do not advertise this Package as a
-product of your own.
-
-6. The scripts and library files supplied as input to or produced as
-output from the programs of this Package do not automatically fall
-under the copyright of this Package, but belong to whomever generated
-them, and may be sold commercially, and may be aggregated with this
-Package.
-
-7. C subroutines supplied by you and linked into this Package in order
-to emulate subroutines and variables of the language defined by this
-Package shall not be considered part of this Package, but are the
-equivalent of input as in Paragraph 6, provided these subroutines do
-not change the language in any way that would cause it to fail the
-regression tests for the language.
-
-8. The name of the Copyright Holder may not be used to endorse or promote
-products derived from this software without specific prior written permission.
-
-9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-
-The End
diff --git a/contrib/gtk-tool/Makefile b/contrib/gtk-tool/Makefile
deleted file mode 100644 (file)
index fa9f860..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-HOME_LOCATION=$(shell pwd)
-CC=    gcc
-CPLUS= g++
-OPTS=-g #-DDEBUG
-INCLUDES=`gtkmm-config --cflags` -I.
-LDFLAGS=`gtkmm-config --libs` -L/usr/lib -L/usr/X11/lib -L/usr/local/gnome/lib -L/usr/local/ldap/lib -lldap -llber -L/usr/local/kerberos/lib -lkrb5 -lkrb4
-LIBS=-lXext -lgtkmm -lX11 -lXt -lXxf86dga
-
-.EXPORT_ALL_VARIABLES:
-
-SOURCES=       My_Window.cc Gtk_LdapTree.cc Gtk_LdapTreeItem.cc Gtk_LdapServer.cc utils.cc main.cc
-OBJECTS=       My_Window.o Gtk_LdapTree.o Gtk_LdapTreeItem.o Gtk_LdapServer.o utils.o main.o
-
-################################################################################
-
-all:   $(OBJECTS) $(SOURCES)
-       $(CPLUS) $(OBJECTS) -o main $(LDFLAGS)
-       exec
-
-exec:  all
-       chmod a+x main
-       ls -al main
-
-%.o: %.c
-       $(CC) -c $(OPTS) $(INCLUDES) $<
-
-%.o: %.cc
-       $(CPLUS) -c $(OPTS) $(INCLUDES) $<
-
-clean: 
-       rm -f main a.out *.o straced core
diff --git a/contrib/gtk-tool/My_Window.cc b/contrib/gtk-tool/My_Window.cc
deleted file mode 100644 (file)
index 941844c..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-#include <My_Window.h>
-
-My_Window::My_Window(GtkWindowType t) : Gtk_Window(t) {
-       cout << "My_Window(t)" << endl;
-       Gtk_VBox *main_hbox;
-       Gtk_HBox *top_hbox;
-       Gtk_VBox *bottom_hbox;
-       Gtk_Menu *menu;
-       Gtk_MenuItem *file_menu, *menuitem;
-
-       pane = new Gtk_HPaned();
-       this->scroller = new Gtk_ScrolledWindow();
-       this->scroller->set_policy(GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-//     this->scroller->set_usize(this->height(), 400);
-       pane->add1(*this->scroller);
-       this->scroller->show();
-
-//     this->scroller2 = new My_Scroller();
-       this->scroller2 = new Gtk_ScrolledWindow();
-       this->viewport = new Gtk_Viewport();
-       this->scroller2->set_policy(GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
-       this->scroller2->add(*this->viewport);
-       pane->add2(*this->scroller2);   
-       this->scroller2->show();
-
-       top_hbox = new Gtk_HBox();
-       menu = new Gtk_Menu();
-       menuitem = new Gtk_MenuItem("Quit");
-       menu->append(*menuitem);
-       this->menubar = new Gtk_MenuBar();
-       file_menu = new Gtk_MenuItem("File");
-       file_menu->set_submenu(menu);
-       this->menubar->append(*file_menu);
-       menuitem->show();
-       menu->show();
-       file_menu->show();
-//     top_hbox->pack_start(*this->menubar, TRUE, TRUE, 1);
-       this->menubar->show();
-       this->urlfield = new Gtk_Entry();
-       top_hbox->pack_start(*this->urlfield, TRUE, TRUE, 1);
-       this->urlfield->show();
-       this->display_button = new Gtk_Button("Display");
-       connect_to_method(this->display_button->clicked, this, &do_display);
-       top_hbox->pack_end(*this->display_button, FALSE, FALSE, 1);
-       this->display_button->show();
-
-       this->status = new Gtk_Statusbar();
-
-       bottom_hbox = new Gtk_VBox();
-       bottom_hbox->pack_start(*pane, TRUE, TRUE, 1);
-       bottom_hbox->pack_end(*status, FALSE, TRUE, 1);
-       pane->show();
-       status->show();
-
-       main_hbox = new Gtk_VBox();
-       main_hbox->pack_start(*this->menubar, FALSE, FALSE, 1);
-       main_hbox->pack_start(*top_hbox, FALSE, TRUE, 1);
-       main_hbox->pack_end(*bottom_hbox, TRUE, TRUE, 1);
-       top_hbox->show();
-       bottom_hbox->show();
-       this->add(main_hbox);
-       main_hbox->show();
-}
-
-My_Window::~My_Window() {
-       cout << "~My_Window()" << endl;
-       delete this;
-}
-
-int My_Window::debug(const char *format,...) {
-#ifdef DEBUG
-       va_list args;
-       int ret;
-       char *c;
-       char buff[50];
-       unsigned int m_context_id;
-       va_start(args, format);
-       ret = vprintf(format, args);
-/*     if (this->status != NULL) {
-               m_context_id = this->status->get_context_id("gtk-tool");
-               ret = vsprintf(c, format, args);
-               g_snprintf(buff, 50, "Action: %s", c);
-               this->status->push(m_context_id, buff);
-       }
-*/     va_end(args);
-       return ret;
-#endif
-}
-
-void My_Window::do_display() {
-       cout << this->urlfield->get_text() << endl;
-}
-
-gint My_Window::delete_event_impl(GdkEventAny*) {
-       Gtk_Main::instance()->quit();
-       return 0;
-}
diff --git a/contrib/gtk-tool/My_Window.h b/contrib/gtk-tool/My_Window.h
deleted file mode 100644 (file)
index 05f028b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef MY_WINDOW_H
-#define MY_WINDOW_H
-#include "cpluscommon.h"
-#include "gtk.h"
-
-class My_Window : public Gtk_Window {
-public:
-       Gtk_ScrolledWindow *scroller, *scroller2;
-       Gtk_Viewport *viewport;
-//     My_Scroller *scroller2;
-       Gtk_Entry *urlfield;
-       Gtk_Button *display_button;
-       Gtk_Paned *pane;
-       Gtk_MenuBar *menubar;
-//     Gtk_ProgressBar progress;
-       Gtk_Statusbar *status;
-       My_Window(GtkWindowType t);
-       ~My_Window();
-       int debug(const char *c,...);
-       void do_display();
-       gint delete_event_impl(GdkEventAny *);
-};
-#endif
diff --git a/contrib/gtk-tool/README b/contrib/gtk-tool/README
deleted file mode 100644 (file)
index 282dd59..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-README for gtk-tool v0.6
-
-This package has been tested and run with the latest Gtk+/Gtk--
-OpenLDAP 1.1-devel. This thing doesn't run as it should, please
-read TODO!
-
-Just type 'make' to compile and if you have all the necessary stuff it'll do so.
-You do need the latest version of Gtk+ and Gtk-- (which may be tricky to build).
-You can also edit the Makefile and under "OPTS=-g" add " -DDEBUG" (line should
-read "OPTS=-g -DDEBUG") to get a trace of what the gtk-tool is doing (getting
-entries, traversing trees etc...)
-After that, hopefully all goes well, you start the thing by doing:
-./main -s localhost
-
-It no longer has a default base, instead it reads cn=config off your slapd
-and accordignly inserts all available databases under "localhost". If you are
-not running slapd on your local machine, then supply it with a "-s hostname"
-i.e.:
-       ./main -s server02.nowhere.net
-
-or if you feel like having an adventure try multiple servers
-i.e.:
-       ./main -s server02.nowhere.net -s server03.nowhere.com:322
-
-etc...
-It does not accept -b switch as it no longer needs it to aquire databases.
-But please feel free to add whatever else you consider neccessary to 
-understanding how this thing works. Enjoy, and I hope this can be useful to 
-you in some miniscule way.
-
-All emails to -devel list, and plase make sure you put "GTK-TOOL"
-in the subject line, so other people who are not interested don't
-have to read our garbage.
-
-Pele
-pele@openldap.org
diff --git a/contrib/gtk-tool/TODO b/contrib/gtk-tool/TODO
deleted file mode 100644 (file)
index 31012c3..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-LOADS!!!
-
-Priorities:
-       Now that we have cn=config we can start using ldap_get_option propperly
-       and be able to run/stop server from the gtk-tool. Other things like
-       new entries would now come in handy.
-       Implement searches
-       port to autoconf (anyone? it should be easy)
-
-Optional:
-       comments in the source code     
-       port it to NT so we can use it with the NT port of OpenLDAP
-       (is there a NT port of Gtk+?)
-
-Pele
-pele@openldap.org
diff --git a/contrib/gtk-tool/common.h b/contrib/gtk-tool/common.h
deleted file mode 100644 (file)
index 1d87d13..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef MY_COMMON
-#define MY_COMMON
-
-#include "system.h"
-#include "cpluscommon.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <error.h>
-#include <string.h>
-extern int errno;
-#endif
diff --git a/contrib/gtk-tool/cpluscommon.h b/contrib/gtk-tool/cpluscommon.h
deleted file mode 100644 (file)
index e16988e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef MY_CPLUS_COMMON
-#define MY_CPLUS_COMMON
-
-#include <iostream.h>
-#include <iomanip.h>
-#include <fstream.h>
-#include <strstream.h>
-#include <unistd.h>
-#endif
diff --git a/contrib/gtk-tool/gtk.h b/contrib/gtk-tool/gtk.h
deleted file mode 100644 (file)
index 13233c7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef MY_GTK_INCLUDES
-#define MY_GTK_INCLUDES
-
-#include <gtk--.h>
-#include <gtk/gtk.h>
-#include <gtk--/widget.h>
-#include <gtk--/button.h>
-#include <gtk--/window.h>
-#include <gtk--/list.h>
-#include <gtk--/main.h>
-#include <gtk--sig.h>
-#include <gtk--/container.h>
-
-#endif
diff --git a/contrib/gtk-tool/icons/alias_node.h b/contrib/gtk-tool/icons/alias_node.h
deleted file mode 100644 (file)
index 6f5b623..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* XPM */
-static char *alias_node[] = {
-/* columns rows colors chars-per-pixel */
-"19 20 28 1",
-"  c Gray0",
-". c #010101010101",
-"X c #020202020202",
-"o c Gray1",
-"O c Gray2",
-"+ c #060606060606",
-"@ c #090909090909",
-"# c Gray6",
-"$ c Gray9",
-"% c Gray11",
-"& c #1d1d1d1d1d1d",
-"* c #7f7f78787f7f",
-"= c #909090900000",
-"- c #cfcfc8c86060",
-"; c #cfcfc8c86161",
-": c #d0d0c9c96262",
-"> c #d0d0c9c96363",
-", c #d1d1caca6565",
-"< c #d1d1caca6666",
-"1 c #ffffc8c89090",
-"2 c #ffffc8c89191",
-"3 c #ffffc9c99191",
-"4 c #fffff8f89090",
-"5 c #c0c0c0c0c0c0",
-"6 c #fffff8f8cfcf",
-"7 c #efefe8e8efef",
-"8 c #fffff8f8ffff",
-"9 c None",
-/* pixels */
-"9999999999999999999",
-"99===== 99999999999",
-"9=76644= 9999999999",
-"=-------======99999",
-"=666666666664- 9999",
-"=644444444441- 9999",
-"=644444441414- 9999",
-"=644444444141- 9999",
-"=644444141414- 9999",
-"****** 414141- 9999",
-"*88888 141411- 9999",
-"*88  8 414233;X9999",
-"*8 * 8.;:>,<<,+9999",
-"*8 888.o@#$&%$#9999",
-"*88888o999999999999",
-"     .O999999999999",
-"9999999999999999999",
-"9999999999999999999",
-"9999999999999999999",
-"9999999999999999999"
-};
diff --git a/contrib/gtk-tool/icons/branch_node.h b/contrib/gtk-tool/icons/branch_node.h
deleted file mode 100644 (file)
index b6d0ed3..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* XPM */
-static char *branch_node[] = {
-/* columns rows colors chars-per-pixel */
-"19 20 10 1",
-"  c Gray0",
-". c Gray40",
-"X c Magenta",
-"o c #999999990000",
-"O c #cccccccc6666",
-"+ c #ffffcccc9999",
-"@ c #ffffffff9999",
-"# c #ffffffffcccc",
-"$ c Gray100",
-"% c None",
-/* pixels */
-"%%%%%%%%%%%%%%%%%%%",
-"%%ooooo %%%%%%%%%%%",
-"%o$$##@O %%%%%%%%%%",
-"oOOOOOOOoooooo%%%%%",
-"o###########@O %%%%",
-"o#@@@@@@@@@@+O %%%%",
-"o#@@@@@@@+@+@@ %%%%",
-"o#@@@@@@@@+@+O %%%%",
-"o#@@@@@+@+@+@O %%%%",
-"o#@@@@@@+@+@+O %%%%",
-"o#@@@+@+@+@++@ %%%%",
-"o#+@+@+@+@+++O %%%%",
-"oOOOOOOOOOOOOO %%%%",
-"%              %%%%",
-"%%%%%%%%%%%%%%%%%%%",
-"%%%%%%%%%%%%%%%%%%%",
-"%%%%%%%%%%%%%%%%%%%",
-"%%%%%%%%%%%%%%%%%%%",
-"%%%%%%%%%%%%%%%%%%%",
-"%%%%%%%%%%%%%%%%%%%"
-};
diff --git a/contrib/gtk-tool/icons/general_node.h b/contrib/gtk-tool/icons/general_node.h
deleted file mode 100644 (file)
index 39d33bf..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/* XPM */
-static char *general_node[] = {
-/* columns rows colors chars-per-pixel */
-"17 17 44 1",
-"  c Gray0",
-". c #101000000000",
-"X c #000000003030",
-"o c #303020203030",
-"O c Gray19",
-"+ c #000030305151",
-"@ c #000020206161",
-"# c #000030306161",
-"$ c #414130304141",
-"% c #414141414141",
-"& c #515161615151",
-"* c #717171717171",
-"= c #101000008686",
-"- c #00000000aeae",
-"; c #30302020aeae",
-": c #00001010efef",
-"> c #20201010efef",
-", c #20202020efef",
-"< c #000051519e9e",
-"1 c #51514141efef",
-"2 c #61617171efef",
-"3 c #717182827171",
-"4 c #868671717171",
-"5 c #868671718686",
-"6 c #969692929696",
-"7 c #9e9ea2a29e9e",
-"8 c #9e9eaeae9e9e",
-"9 c #9e9ea2a2aeae",
-"0 c #aeaea2a2aeae",
-"q c #aeaeaeaeaeae",
-"w c #bebebebebebe",
-"e c #86868282efef",
-"r c #96968282efef",
-"t c #9e9ea2a2efef",
-"y c #9e9eaeaeefef",
-"u c #aeaeaeaeefef",
-"i c #bebebebeefef",
-"p c #cfcfcfcfdfdf",
-"a c #cfcfcfcfefef",
-"s c #cfcfdfdfefef",
-"d c #dfdfefefdfdf",
-"f c #efefdfdfefef",
-"g c #efefefefefef",
-"h c None",
-/* pixels */
-"hhhhhhhhhhhhhhhhh",
-"hh gggggggg hhhhh",
-"hh gg<gggg+ g hhh",
-"hh gg<<#+##   hhh",
-"hh ggggggggggg hh",
-"hh ggggggggggg hh",
-"hX ggggggggggg hh",
-"h  :=3     4gg hh",
-"h X>X5q gggggg hh",
-"h-,;%$6 fdgggg hh",
-"h 12e u 8wgggg hh",
-"h  rtua .7&&gg hh",
-"hh yisg O9gggg hh",
-"        o  4gg hh",
-"h  *      & gg hh",
-"h  808988pgggg hh",
-"hhh            hh"
-};
diff --git a/contrib/gtk-tool/icons/leaf_node.h b/contrib/gtk-tool/icons/leaf_node.h
deleted file mode 100644 (file)
index 20eec7a..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/* XPM */
-static char *leaf_node[] = {
-/* columns rows colors chars-per-pixel */
-"16 20 33 1",
-"  c Gray0",
-". c Gray19",
-"X c #303030306060",
-"o c #505050505050",
-"O c #5f5f5f5f5f5f",
-"+ c Gray44",
-"@ c #000000008080",
-"# c #000030309f9f",
-"$ c #30303030cfcf",
-"% c #000060609f9f",
-"& c #00006060cfcf",
-"* c #30306060cfcf",
-"= c #30306060ffff",
-"- c #0000cfcfffff",
-"; c #60609f9f9f9f",
-": c #6060ffffffff",
-"> c Magenta",
-", c #808080800000",
-"< c #9f9f9f9f6060",
-"1 c #cfcf9f9f6060",
-"2 c #808080808080",
-"3 c #9f9f9f9f9f9f",
-"4 c #9f9fcfcfcfcf",
-"5 c #ffffcfcf9f9f",
-"6 c #ffffffff9f9f",
-"7 c #c0c0c0c0c0c0",
-"8 c Gray81",
-"9 c #e0e0e0e0d0d0",
-"0 c #efefefefefef",
-"q c Gray94",
-"w c ivory",
-"e c Gray100",
-"r c None",
-/* pixels */
-"rrr+222222222rrr",
-"rrr+eeeeeeee3orr",
-"rrr+ewwwwwww3wor",
-"rrr+eww&&wwwo...",
-"rrr@&&&&w=qw83+o",
-"rr@;4$$:&qwq083o",
-"r@<6&ww$-&q0098o",
-"r+5=&&&&&&00998o",
-"+1*=&wwqw0q9098o",
-"O<#==77$=%00998o",
-",$X$====%009098o",
-"r$r  %%%0090998o",
-"rr$+eqwq0909998o",
-"rrr+00099099998o",
-"rrr+88888888888o",
-"rrr+oooooooooooo",
-"rrrrrrrrrrrrrrrr",
-"rrrrrrrrrrrrrrrr",
-"rrrrrrrrrrrrrrrr",
-"rrrrrrrrrrrrrrrr"
-};
diff --git a/contrib/gtk-tool/icons/local_server.h b/contrib/gtk-tool/icons/local_server.h
deleted file mode 100644 (file)
index 2e454b5..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-/* XPM */
-static char *local_server[] = {
-/* columns rows colors chars-per-pixel */
-"19 20 240 2",
-"   c Gray0",
-".  c #023e04130000",
-"X  c #073b07af0360",
-"o  c #000000000a4b",
-"O  c #000000000f11",
-"+  c #0f580fce0000",
-"@  c #0000000010d0",
-"#  c #07ab0eb01e98",
-"$  c #14b41637012b",
-"%  c #168917a80ab2",
-"&  c #175c18520a5a",
-"*  c #1a0b1b520eb5",
-"=  c #1e231e6d0bf9",
-"-  c #17091db31bda",
-";  c #1aaf1bb4122d",
-":  c #19741af214be",
-">  c #1c8d1df31118",
-",  c #1ec01fc915d0",
-"<  c #1ef51ff71651",
-"1  c #0000079e232a",
-"2  c #03a20f492c9f",
-"3  c #05590f692831",
-"4  c #072b113229fd",
-"5  c #0de317392448",
-"6  c #0e48163327ef",
-"7  c #09e713c52c71",
-"8  c #0ebe1619282b",
-"9  c #0e6d17482956",
-"0  c #0f4817eb299f",
-"q  c #0c56160c2dcf",
-"w  c #0f201a2425db",
-"e  c #0be6165230b9",
-"r  c #0d6917bd324a",
-"t  c #0ff51a183470",
-"y  c #10431cfd2b8f",
-"u  c #15631d8a32e0",
-"i  c #16811da73182",
-"p  c #1f2f209a1346",
-"a  c #1d4020891a22",
-"s  c #171221aa2fcd",
-"d  c #160d20113996",
-"f  c #18d621893596",
-"g  c #1d8e235a30e7",
-"h  c #1e4226db3a44",
-"j  c #1f4027663b36",
-"k  c #1ebd282c3af4",
-"l  c #21c022e615d4",
-"z  c #224e22ab1570",
-"x  c #24e325221696",
-"c  c #2172227b18dd",
-"v  c #2374248b1abd",
-"b  c #25ae26bd18f5",
-"n  c #257726891c6a",
-"m  c #275c28461e3d",
-"M  c #2ce52d5d1e67",
-"N  c #2e0d317f1d9b",
-"B  c #298b2a6f2027",
-"V  c #2a5b2ae92075",
-"C  c #2b1d2bb82201",
-"Z  c #2b922c3522c4",
-"A  c #2b8b2dfb26cc",
-"S  c #224929923335",
-"D  c #23892b663903",
-"F  c #217c2aa73e75",
-"G  c #280f2f9e3ac1",
-"H  c #2f6231172843",
-"J  c #28e4318f3d9b",
-"K  c #2de4327f3c5e",
-"L  c #385c392a2eb5",
-"P  c #370e3bbe368b",
-"I  c #3d973fff3561",
-"U  c #200d2964419b",
-"Y  c #21382a9542af",
-"T  c #21372b164533",
-"R  c #22882c8447b1",
-"E  c #267e2f8a46a5",
-"W  c #23f82e1d485b",
-"Q  c #27c430b34778",
-"!  c #277f30be48e2",
-"~  c #280330ee4794",
-"^  c #28c331ed4959",
-"/  c #28f9321f48f3",
-"(  c #295232764a58",
-")  c #2aab33ad4a5d",
-"_  c #2b9734644ad0",
-"`  c #2b4234414b9a",
-"'  c #2cdd35a14c17",
-"]  c #2d9c3759502c",
-"[  c #35c73a1843c3",
-"{  c #348e39fb453b",
-"}  c #36d33e394a1a",
-"|  c #34a13d075244",
-" . c #34f73d7b5328",
-".. c #35983dbd5362",
-"X. c #36cc3f2f53d4",
-"o. c #37713fd854df",
-"O. c #3c1b41ef4a48",
-"+. c #382941505988",
-"@. c #3cb244ae5933",
-"#. c #413545b24744",
-"$. c #44c1455c418f",
-"%. c #428c464e4eb2",
-"&. c #49e74b17480e",
-"*. c #4b7a4b984919",
-"=. c #4b424c124924",
-"-. c #4e2b4ce1494c",
-";. c #4b5450bb574f",
-":. c #545f56ee543c",
-">. c #520055075b58",
-",. c #45ca4deb63f7",
-"<. c #47c54ea9618f",
-"1. c #477d4f716673",
-"2. c #48314fb16218",
-"3. c #4cd2542760ea",
-"4. c #4b93542768dd",
-"5. c #528858de6a23",
-"6. c #5d7f62a36740",
-"7. c #606162956770",
-"8. c #639c687068a6",
-"9. c #692e6b18620d",
-"0. c #6c456e4766cc",
-"q. c #6bc06e9068a9",
-"w. c #64656af87761",
-"e. c #6c7f6da9716d",
-"r. c #6e426e0971fc",
-"t. c #6eae6f6f73f0",
-"y. c #6f79716769b5",
-"u. c #75af75d26eec",
-"i. c #71a275b87813",
-"p. c #7dc582a986da",
-"a. c #862d47a59174",
-"s. c #885b47d79329",
-"d. c #8fac5b4596fb",
-"f. c #898d7a518c04",
-"g. c #8a1b7bb78c25",
-"h. c #9ff76cefabfe",
-"j. c #a01373e4a9c2",
-"k. c #a9327743af85",
-"l. c #813c82307990",
-"z. c #81e482da7a7f",
-"x. c #82a183727b14",
-"c. c #833e83de7b92",
-"v. c #83248602867e",
-"b. c #8b538c308b37",
-"n. c #8f4d99148ef8",
-"m. c #8ddd9240969e",
-"M. c #9b689b8586d9",
-"N. c #953097a99355",
-"B. c Gray58",
-"V. c #96d09842970f",
-"C. c #979799719910",
-"Z. c #9b579caa9ae3",
-"A. c #9ba99d2a9c8f",
-"S. c Gray62",
-"D. c #99659de1a359",
-"F. c #ac17ab8b9ea2",
-"G. c Gray64",
-"H. c #a007a1f1a793",
-"J. c #a2a1a27ea639",
-"K. c #a1c7a6b9ac80",
-"L. c Gray66",
-"P. c #aa08ab5ba86e",
-"I. c #aaa1aa8daa8b",
-"U. c #adedaf8bae65",
-"Y. c #a8ffaf75b90b",
-"T. c #ad0bb5d3aca9",
-"R. c #afcab577bbfb",
-"E. c #b3cab37fae09",
-"W. c #b065b1f7b0b8",
-"Q. c #b1f1b1efb1e7",
-"!. c #b0b0b090b228",
-"~. c #b27fb26eb259",
-"^. c #b34ab4cdb34c",
-"/. c #b6f9b7c3b6c1",
-"(. c #b2d3b572b8bd",
-"). c #b679bc3fbfdf",
-"_. c #b94dba06b74f",
-"`. c #bb54bb51bb4c",
-"'. c #bf9eb931bc1d",
-"]. c Gray74",
-"[. c #bd72bdc7bee1",
-"{. c #bebbbe54bf75",
-"}. c #c12dc14abd26",
-"|. c #c23ec236c1f7",
-" X c Gray76",
-".X c #c3e8c682c6e7",
-"XX c #c6c6c7c3c0d5",
-"oX c #c1a0c68acf26",
-"OX c #c506c896cf5d",
-"+X c #c991ca28ccd9",
-"@X c Gray80",
-"#X c #cdcccceccccd",
-"$X c #cf73c67ed0d0",
-"%X c #c95fcc81d1c3",
-"&X c #ca18cce0d140",
-"*X c #ce76d0ddd44f",
-"=X c #cfc6d296d6cb",
-"-X c #d1e9d451d713",
-";X c #d559d665d6c9",
-":X c #d501d68ed787",
-">X c Gray84",
-",X c #d543d771d9f9",
-"<X c #d4b6d7e8dea1",
-"1X c #d827d709d5f4",
-"2X c #da4fd4fadc81",
-"3X c #d8d6dac9dcbd",
-"4X c #dd07dc27db7b",
-"5X c #dd63de3ddd35",
-"6X c #dc48de00dfa1",
-"7X c #dbe2de33e22f",
-"8X c #dd72dfafe2a2",
-"9X c #dfd1df87e12e",
-"0X c #dfcee12ae24a",
-"qX c #e039e165e29f",
-"wX c #e3b6e4b4e55c",
-"eX c #e360e516e7b7",
-"rX c #e623e518e29f",
-"tX c #e674e93eeb1a",
-"yX c #e722e8f8eacf",
-"uX c #eb0aec94ee5b",
-"iX c #ebb6ed47ee96",
-"pX c #ef4af08af194",
-"aX c #f120f318ef4d",
-"sX c #f197f142f2ce",
-"dX c #f1a3f2def53d",
-"fX c #f330f431f4ea",
-"gX c #f3fbf485f52c",
-"hX c Gray97",
-"jX c #f6b4f7b7f8d7",
-"kX c #f632f8aaf7ce",
-"lX c #f5ebf828fd61",
-"zX c #fc48fffff501",
-"xX c #f9a9f9affb15",
-"cX c #fafafbe4fa37",
-"vX c #f83df975fc09",
-"bX c Gray99",
-"nX c #fcdbfd0ffc96",
-"mX c #ffffffd4feaf",
-"MX c Gray100",
-"NX c None",
-/* pixels */
-"Z L .X%X&X*X-X,X3X6X0XwXwXqX:X0.NXNXNX",
-"C z tX<X7XeXyXuXpXfXhXbXnXgXdXy.NXNXNX",
-"V x K.D 5 G O.;.6.i.v.V.A.C.MXz.NXNXNX",
-"B b _.$.9 U j f q 7 4 3 1 O MXc.NXNXNX",
-"m l /.=.F 1.5.<.` ! ( ( R 0 MXx.NXNXNX",
-"n p ^.&.k 4.2.../ E E ~ T 0 MXz.NXNXNX",
-"v > W.=.h ,.X._ | ) E Q T 6 MXl.NXNXNX",
-"c * U.*.u +.@.o. .` ^ ) W 8 MXl.NXNXNX",
-"< % P.-.i ] ' Y d t r e 2 @ mXl.NXNXNX",
-", & D.{ # g K [ %.>.7.e.t.r.MXx.NXNXNX",
-"; & ).Y.R.oXOX=X8XiXjXvXlXkXaX9.NXNXNX",
-"X   A H I 8.w.3.} J s y w - a : NXNXNX",
-"  NXNX  NX  . P S o         NX  NXNXNX",
-"M $ + M.}.E.F.XX(.m.p.q.:.#.N = NXNXNX",
-"'.rXzXcXMXxXsX9X4X1X#X{.!.J.N.u.NXNXNX",
-"j.h.2XT.;X+X|.H.[.].~.I.G.Z.n.f.NXNXNX",
-"a.s.k.$X5X>X@X X`.Q.L.S.B.b.g.d.NXNXNX",
-"NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNX",
-"NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNX",
-"NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNX"
-};
diff --git a/contrib/gtk-tool/icons/remote_server.h b/contrib/gtk-tool/icons/remote_server.h
deleted file mode 100644 (file)
index 482f27b..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-/* XPM */
-static char *remote_server[] = {
-/* columns rows colors chars-per-pixel */
-"19 20 240 2",
-"   c Gray0",
-".  c #023e04130000",
-"X  c #073b07af0360",
-"o  c #000000000a4b",
-"O  c #000000000f11",
-"+  c #0f580fce0000",
-"@  c #0000000010d0",
-"#  c #07ab0eb01e98",
-"$  c #14b41637012b",
-"%  c #168917a80ab2",
-"&  c #175c18520a5a",
-"*  c #1a0b1b520eb5",
-"=  c #1e231e6d0bf9",
-"-  c #17091db31bda",
-";  c #1aaf1bb4122d",
-":  c #19741af214be",
-">  c #1c8d1df31118",
-",  c #1ec01fc915d0",
-"<  c #1ef51ff71651",
-"1  c #0000079e232a",
-"2  c #03a20f492c9f",
-"3  c #05590f692831",
-"4  c #072b113229fd",
-"5  c #0de317392448",
-"6  c #0e48163327ef",
-"7  c #09e713c52c71",
-"8  c #0ebe1619282b",
-"9  c #0e6d17482956",
-"0  c #0f4817eb299f",
-"q  c #0c56160c2dcf",
-"w  c #0f201a2425db",
-"e  c #0be6165230b9",
-"r  c #0d6917bd324a",
-"t  c #0ff51a183470",
-"y  c #10431cfd2b8f",
-"u  c #15631d8a32e0",
-"i  c #16811da73182",
-"p  c #1f2f209a1346",
-"a  c #1d4020891a22",
-"s  c #171221aa2fcd",
-"d  c #160d20113996",
-"f  c #18d621893596",
-"g  c #1d8e235a30e7",
-"h  c #1e4226db3a44",
-"j  c #1f4027663b36",
-"k  c #1ebd282c3af4",
-"l  c #21c022e615d4",
-"z  c #224e22ab1570",
-"x  c #24e325221696",
-"c  c #2172227b18dd",
-"v  c #2374248b1abd",
-"b  c #25ae26bd18f5",
-"n  c #257726891c6a",
-"m  c #275c28461e3d",
-"M  c #2ce52d5d1e67",
-"N  c #2e0d317f1d9b",
-"B  c #298b2a6f2027",
-"V  c #2a5b2ae92075",
-"C  c #2b1d2bb82201",
-"Z  c #2b922c3522c4",
-"A  c #2b8b2dfb26cc",
-"S  c #224929923335",
-"D  c #23892b663903",
-"F  c #217c2aa73e75",
-"G  c #280f2f9e3ac1",
-"H  c #2f6231172843",
-"J  c #28e4318f3d9b",
-"K  c #2de4327f3c5e",
-"L  c #385c392a2eb5",
-"P  c #370e3bbe368b",
-"I  c #3d973fff3561",
-"U  c #200d2964419b",
-"Y  c #21382a9542af",
-"T  c #21372b164533",
-"R  c #22882c8447b1",
-"E  c #267e2f8a46a5",
-"W  c #23f82e1d485b",
-"Q  c #27c430b34778",
-"!  c #277f30be48e2",
-"~  c #280330ee4794",
-"^  c #28c331ed4959",
-"/  c #28f9321f48f3",
-"(  c #295232764a58",
-")  c #2aab33ad4a5d",
-"_  c #2b9734644ad0",
-"`  c #2b4234414b9a",
-"'  c #2cdd35a14c17",
-"]  c #2d9c3759502c",
-"[  c #35c73a1843c3",
-"{  c #348e39fb453b",
-"}  c #36d33e394a1a",
-"|  c #34a13d075244",
-" . c #34f73d7b5328",
-".. c #35983dbd5362",
-"X. c #36cc3f2f53d4",
-"o. c #37713fd854df",
-"O. c #3c1b41ef4a48",
-"+. c #382941505988",
-"@. c #3cb244ae5933",
-"#. c #413545b24744",
-"$. c #44c1455c418f",
-"%. c #428c464e4eb2",
-"&. c #49e74b17480e",
-"*. c #4b7a4b984919",
-"=. c #4b424c124924",
-"-. c #4e2b4ce1494c",
-";. c #4b5450bb574f",
-":. c #545f56ee543c",
-">. c #520055075b58",
-",. c #45ca4deb63f7",
-"<. c #47c54ea9618f",
-"1. c #477d4f716673",
-"2. c #48314fb16218",
-"3. c #4cd2542760ea",
-"4. c #4b93542768dd",
-"5. c #528858de6a23",
-"6. c #5d7f62a36740",
-"7. c #606162956770",
-"8. c #639c687068a6",
-"9. c #692e6b18620d",
-"0. c #6c456e4766cc",
-"q. c #6bc06e9068a9",
-"w. c #64656af87761",
-"e. c #6c7f6da9716d",
-"r. c #6e426e0971fc",
-"t. c #6eae6f6f73f0",
-"y. c #6f79716769b5",
-"u. c #75af75d26eec",
-"i. c #71a275b87813",
-"p. c #7dc582a986da",
-"a. c #862d47a59174",
-"s. c #885b47d79329",
-"d. c #8fac5b4596fb",
-"f. c #898d7a518c04",
-"g. c #8a1b7bb78c25",
-"h. c #9ff76cefabfe",
-"j. c #a01373e4a9c2",
-"k. c #a9327743af85",
-"l. c #813c82307990",
-"z. c #81e482da7a7f",
-"x. c #82a183727b14",
-"c. c #833e83de7b92",
-"v. c #83248602867e",
-"b. c #8b538c308b37",
-"n. c #8f4d99148ef8",
-"m. c #8ddd9240969e",
-"M. c #9b689b8586d9",
-"N. c #953097a99355",
-"B. c Gray58",
-"V. c #96d09842970f",
-"C. c #979799719910",
-"Z. c #9b579caa9ae3",
-"A. c #9ba99d2a9c8f",
-"S. c Gray62",
-"D. c #99659de1a359",
-"F. c #ac17ab8b9ea2",
-"G. c Gray64",
-"H. c #a007a1f1a793",
-"J. c #a2a1a27ea639",
-"K. c #a1c7a6b9ac80",
-"L. c Gray66",
-"P. c #aa08ab5ba86e",
-"I. c #aaa1aa8daa8b",
-"U. c #adedaf8bae65",
-"Y. c #a8ffaf75b90b",
-"T. c #ad0bb5d3aca9",
-"R. c #afcab577bbfb",
-"E. c #b3cab37fae09",
-"W. c #b065b1f7b0b8",
-"Q. c #b1f1b1efb1e7",
-"!. c #b0b0b090b228",
-"~. c #b27fb26eb259",
-"^. c #b34ab4cdb34c",
-"/. c #b6f9b7c3b6c1",
-"(. c #b2d3b572b8bd",
-"). c #b679bc3fbfdf",
-"_. c #b94dba06b74f",
-"`. c #bb54bb51bb4c",
-"'. c #bf9eb931bc1d",
-"]. c Gray74",
-"[. c #bd72bdc7bee1",
-"{. c #bebbbe54bf75",
-"}. c #c12dc14abd26",
-"|. c #c23ec236c1f7",
-" X c Gray76",
-".X c #c3e8c682c6e7",
-"XX c #c6c6c7c3c0d5",
-"oX c #c1a0c68acf26",
-"OX c #c506c896cf5d",
-"+X c #c991ca28ccd9",
-"@X c Gray80",
-"#X c #cdcccceccccd",
-"$X c #cf73c67ed0d0",
-"%X c #c95fcc81d1c3",
-"&X c #ca18cce0d140",
-"*X c #ce76d0ddd44f",
-"=X c #cfc6d296d6cb",
-"-X c #d1e9d451d713",
-";X c #d559d665d6c9",
-":X c #d501d68ed787",
-">X c Gray84",
-",X c #d543d771d9f9",
-"<X c #d4b6d7e8dea1",
-"1X c #d827d709d5f4",
-"2X c #da4fd4fadc81",
-"3X c #d8d6dac9dcbd",
-"4X c #dd07dc27db7b",
-"5X c #dd63de3ddd35",
-"6X c #dc48de00dfa1",
-"7X c #dbe2de33e22f",
-"8X c #dd72dfafe2a2",
-"9X c #dfd1df87e12e",
-"0X c #dfcee12ae24a",
-"qX c #e039e165e29f",
-"wX c #e3b6e4b4e55c",
-"eX c #e360e516e7b7",
-"rX c #e623e518e29f",
-"tX c #e674e93eeb1a",
-"yX c #e722e8f8eacf",
-"uX c #eb0aec94ee5b",
-"iX c #ebb6ed47ee96",
-"pX c #ef4af08af194",
-"aX c #f120f318ef4d",
-"sX c #f197f142f2ce",
-"dX c #f1a3f2def53d",
-"fX c #f330f431f4ea",
-"gX c #f3fbf485f52c",
-"hX c Gray97",
-"jX c #f6b4f7b7f8d7",
-"kX c #f632f8aaf7ce",
-"lX c #f5ebf828fd61",
-"zX c #fc48fffff501",
-"xX c #f9a9f9affb15",
-"cX c #fafafbe4fa37",
-"vX c #f83df975fc09",
-"bX c Gray99",
-"nX c #fcdbfd0ffc96",
-"mX c #ffffffd4feaf",
-"MX c Gray100",
-"NX c None",
-/* pixels */
-"Z L .X%X&X*X-X,X3X6X0XwXwXqX:X0.NXNXNX",
-"C z tX<X7XeXyXuXpXfXhXbXnXgXdXy.NXNXNX",
-"V x K.D 5 G O.;.6.i.v.V.A.C.MXz.NXNXNX",
-"B b _.$.9 U j f q 7 4 3 1 O MXc.NXNXNX",
-"m l /.=.F 1.5.<.` ! ( ( R 0 MXx.NXNXNX",
-"n p ^.&.k 4.2.../ E E ~ T 0 MXz.NXNXNX",
-"v > W.=.h ,.X._ | ) E Q T 6 MXl.NXNXNX",
-"c * U.*.u +.@.o. .` ^ ) W 8 MXl.NXNXNX",
-"< % P.-.i ] ' Y d t r e 2 @ mXl.NXNXNX",
-", & D.{ # g K [ %.>.7.e.t.r.MXx.NXNXNX",
-"; & ).Y.R.oXOX=X8XiXjXvXlXkXaX9.NXNXNX",
-"X   A H I 8.w.3.} J s y w - a : NXNXNX",
-"  NXNX  NX  . P S o         NX  NXNXNX",
-"M $ + M.}.E.F.XX(.m.p.q.:.#.N = NXNXNX",
-"'.rXzXcXMXxXsX9X4X1X#X{.!.J.N.u.NXNXNX",
-"j.h.2XT.;X+X|.H.[.].~.I.G.Z.n.f.NXNXNX",
-"a.s.k.$X5X>X@X X`.Q.L.S.B.b.g.d.NXNXNX",
-"NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNX",
-"NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNX",
-"NXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNX"
-};
diff --git a/contrib/gtk-tool/icons/rfc822mailgroup_node.h b/contrib/gtk-tool/icons/rfc822mailgroup_node.h
deleted file mode 100644 (file)
index 7e1719b..0000000
+++ /dev/null
@@ -1,214 +0,0 @@
-/* XPM */
-static char *rfc822mailgroup_node[] = {
-/* columns rows colors chars-per-pixel */
-"19 20 188 2",
-"   c Gray0",
-".  c #07ec07f907f3",
-"X  c #182314d8146d",
-"o  c #1e231c221704",
-"O  c #19be18a01d49",
-"+  c #1e561e181f78",
-"@  c #1dd61e7e2152",
-"#  c #1fde1fb822c6",
-"$  c #20a31fc52305",
-"%  c #21e6216923e3",
-"&  c #23b623892600",
-"*  c #248021b820a9",
-"=  c #2f322c592663",
-"-  c #2d2b2f472fb9",
-";  c #39b03c313cd7",
-":  c #6ec620f41c4a",
-">  c #444b3fab42c8",
-",  c #416e41f64689",
-"<  c #42e543e1448b",
-"1  c #4cbe4fcc5163",
-"2  c #4ced4f405230",
-"3  c #4d034f715233",
-"4  c #4cea501b5125",
-"5  c #4d7552225212",
-"6  c #4f0d523b5357",
-"7  c #4e7f5151541e",
-"8  c #69b86c9a6ada",
-"9  c #6ea16d54712e",
-"0  c #75906b666109",
-"q  c #70166ce2720b",
-"w  c #77e778e075e8",
-"e  c #820e74fc7d5a",
-"r  c #85b87b917708",
-"t  c #915b7e0f6e32",
-"y  c #9a5e7e7c8a53",
-"u  c #939484d477b3",
-"i  c #abd7840f7bf8",
-"p  c #83d18068847e",
-"a  c #8bb880a78829",
-"s  c #885288778970",
-"d  c #89e388af89f7",
-"f  c #8ad58beb8c02",
-"g  c #948587d780da",
-"h  c #953f810c8d16",
-"j  c #903389da8ddb",
-"k  c #90d38d838ffc",
-"l  c #95aa886e8a91",
-"z  c #90c591b28ac7",
-"x  c #948091a58e4a",
-"c  c Gray58",
-"v  c #95bc945095b4",
-"b  c #953c9543959d",
-"n  c #9624972597cc",
-"m  c #973b94549946",
-"M  c #99a593bd96a6",
-"N  c #9cd0975c9c3a",
-"B  c #9cee9c29942e",
-"V  c #9af499929e79",
-"C  c #9ffa9e3fa019",
-"Z  c #a79084328fe5",
-"A  c #a7eb8ca69735",
-"S  c #a28d8e35987a",
-"D  c #a160956e9bb9",
-"F  c #a11a964d9eac",
-"G  c #b69a9d9aacf5",
-"H  c #a57fa2159dcf",
-"J  c #a866a1f49301",
-"K  c #b249a4cb8be6",
-"L  c #a40ba35fa567",
-"P  c #aa20ab3eac0e",
-"I  c #b141a8c0ad2e",
-"U  c #b4b8abccaada",
-"Y  c #b66eacbdaa0c",
-"T  c #b46dadc5b088",
-"R  c #b954a7eeb2f9",
-"E  c #b6abb013b44e",
-"W  c Gray71",
-"Q  c #b724b7bbb862",
-"!  c #b7fdba01b8c5",
-"~  c #bf11b3c6b779",
-"^  c Gray72",
-"/  c #ba9bb8ffba6e",
-"(  c #bc41bd36bf2d",
-")  c #bf4dc73fc925",
-"_  c #c16bad47ae4f",
-"`  c #c4adac0fac1e",
-"'  c #c99bbe96a1dd",
-"]  c #cdc7bed6a35d",
-"[  c #c2bab293b434",
-"{  c #c0f1b999b8cc",
-"}  c #c995b3c1b26a",
-"|  c #ceceb062b0a4",
-" . c #d4c9ba53b1cf",
-".. c #c8f9ba29c4cb",
-"X. c #cb67bde2c81c",
-"o. c #cbd2bc75ca58",
-"O. c #d1d6bb50c77d",
-"+. c #c29bc064bd9d",
-"@. c #da7ecaf8af12",
-"#. c #db3ad18bb699",
-"$. c #e1fdd073b2e1",
-"%. c #f38ae2a6be16",
-"&. c #c45fc94cc8fc",
-"*. c #c98ec715c6fe",
-"=. c #cdd9cb75c361",
-"-. c #cbfdc9b1ca87",
-";. c #c940cc27d0be",
-":. c #caf8cd6ad331",
-">. c #cf6ed365d5f7",
-",. c #d191c301ce2c",
-"<. c #d1e5ccb0cfdc",
-"1. c #d670cde4cfcb",
-"2. c #d55fc433d1e3",
-"3. c #d4edcfb7d3f9",
-"4. c #da77cd44d11e",
-"5. c #dc54cd67dbf8",
-"6. c #d493d2dfcd5d",
-"7. c #d296d516dbd1",
-"8. c #d307d5e6da14",
-"9. c #dbddd262d49d",
-"0. c #deeed007d441",
-"q. c #ddddd53fd59d",
-"w. c #de3ed638d560",
-"e. c #d8c8d6f0db5e",
-"r. c #df88d22ad81e",
-"t. c #de4bd5abdaaf",
-"y. c #dee2db6bd34f",
-"u. c #dfa7db2bdcb5",
-"i. c #eddbc33cc98e",
-"p. c #e3dad086d1d2",
-"a. c #e218d5fbd86e",
-"s. c #e2bfd7ffdba9",
-"d. c #e325d765db4b",
-"f. c #e0d1da19da1c",
-"g. c #e0fedc7bdf13",
-"h. c #e391df6edc8f",
-"j. c #e50fdbfddeb0",
-"k. c #eb5fdb16d71e",
-"l. c #f03bddfadcf2",
-"z. c #e3d0dc36e364",
-"x. c #e24bdf83e33f",
-"c. c #e300def1e2be",
-"v. c #e2b0de09e412",
-"b. c #e334df1fe43b",
-"n. c #e2efe2e5ddde",
-"m. c #ffffefa7d2cd",
-"M. c #ff9ef4c5d83d",
-"N. c #e036e30ae01d",
-"B. c #e227e002e294",
-"V. c #e7d2e46fe31a",
-"C. c #e6cae51ae728",
-"Z. c #e8f3e3cfe3f8",
-"A. c #e87fe5c0e77e",
-"S. c #eab9e60de6a3",
-"D. c #e8b5e415e83d",
-"F. c #e94ae426e933",
-"G. c #eb09e86ae626",
-"H. c #e9a1eadeeea5",
-"J. c #e92deb70eed0",
-"K. c #eb91e966ecc8",
-"L. c #ed64eb3bedbf",
-"P. c #ee1bee85eeca",
-"I. c #ed44ebedf06b",
-"U. c #eed8ecd1f1a2",
-"Y. c #f197e5d0e989",
-"T. c #f6f2e0cdeaef",
-"R. c #f02dea01e9b5",
-"E. c #f192ea47ee91",
-"W. c #f016eff5f204",
-"Q. c #f96ceda8f62c",
-"!. c #f053f0daf4ac",
-"~. c #f5ddf1e3f730",
-"^. c #f606f36ef6c8",
-"/. c #f570f42bf44a",
-"(. c #f52ff1f5f892",
-"). c #f4f3f51ef9ab",
-"_. c #f726f6cfffff",
-"`. c #f7dcf835f989",
-"'. c #f7a7f8adfbd6",
-"]. c #fbb3f497f63e",
-"[. c #f88ff59ffc7c",
-"{. c #f818f99dfb5e",
-"}. c #fd46f943fd84",
-"|. c #feadfb96ff2b",
-" X c #ff97fceeffba",
-".X c #ff5afd52ffff",
-"XX c Gray100",
-"oX c None",
-/* pixels */
-"oXoXoXoXoXoX  = 0 X oXoXoXoXoXoXoXoXoX",
-"oXoXoXoXoXoXoXo u   oXoXoXoXoXoXoXoXoX",
-"oXoXoXoXoXoX  #.XXg oX    oXoXoXoXoXoX",
-"oXoXoXoXoX  @.m.' %.r 9 *   oXoXoXoXoX",
-"oXoXoXoX  ] $.J z ^ XXXXE   oXoXoXoXoX",
-"oXoXoX  K M.B &.XX.XY.}.XX> oXoXoXoXoX",
-"oXoXoXt  .Y w.p.| _ } ` l.l     oXoXoX",
-"< 5 H k.X.[ U y Z D S A F o.q . oXoXoX",
-"a R T.,._.).I.L.W.J.F.K.4.i.N.+ oXoXoX",
-"e h O.G ..P.G.Z.B.u.q.D.i : { & oXoXoX",
-"j I Q.5.2.E.S.C.b.d.0.z.n 8 ) % oXoXoX",
-"b ! XXH.+.1.P ( 3.j.t.e.n.].7.$ oXoXoX",
-"c W XXx.L V d M ~ T v.h.6.f.;.$ oXoXoX",
-"c W  Xc.N f k m C p w x *.g.:.$ oXoXoX",
-"v / XXR.V.A.s.a.r.9.=.-.<.y.>.# oXoXoX",
-"s Q XX`.{.'.[.^.~.(./.!.U.|.8.@ oXoXoX",
-"- ; 6 4 1 1 1 1 1 1 3 2 3 7 , O oXoXoX",
-"oXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoX",
-"oXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoX",
-"oXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoXoX"
-};
diff --git a/contrib/gtk-tool/icons/root_node.h b/contrib/gtk-tool/icons/root_node.h
deleted file mode 100644 (file)
index e1b376f..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/* XPM */
-static char *root_node[] = {
-/* columns rows colors chars-per-pixel */
-"19 20 49 1",
-"  c #313131310000",
-". c #313131313131",
-"X c #000000006363",
-"o c #000031316363",
-"O c #313131316363",
-"+ c #000042424242",
-"@ c #00007b7b7b7b",
-"# c #313163636363",
-"$ c #636363633131",
-"% c #5a5a5a5a5a5a",
-"& c #7b7b7b7b7b7b",
-"* c #31313131ffff",
-"= c #000042428484",
-"- c #313163639c9c",
-"; c #31316363cece",
-": c #636363639c9c",
-"> c #00009c9c3131",
-", c #31319c9c3131",
-"< c #63639c9c3131",
-"1 c #63639c9c6363",
-"2 c #31319c9ccece",
-"3 c #31319c9cffff",
-"4 c #0000ceceffff",
-"5 c Cyan",
-"6 c #63639c9c9c9c",
-"7 c #63639c9ccece",
-"8 c #63639c9cffff",
-"9 c #6363ceceffff",
-"0 c #9c9c00000000",
-"q c #cece00000000",
-"w c Magenta",
-"e c #848484844242",
-"r c #9c9c9c9c6363",
-"t c #848484848484",
-"y c Gray58",
-"u c Gray71",
-"i c #84848484ffff",
-"p c #9c9ccececece",
-"a c #9c9cceceffff",
-"s c #8484ffffffff",
-"d c #a5a5cecef7f7",
-"f c #ffff9c9c9c9c",
-"g c #cececece9c9c",
-"h c #c6c6c6c6c6c6",
-"j c #c6c6dedec6c6",
-"k c #cecececeffff",
-"l c #ceceffffcece",
-"z c Gray100",
-"x c None",
-/* pixels */
-"xxxxx&t&&txxxxxxxxx",
-"xxxhujds9u&&xxxxxxx",
-"xxhzzdadd1<1 xxxxxx",
-"x7zhjdag&1e,$ xxxxx",
-"x7ddkuj61e&$, xxxxx",
-"7asapryt&.@>., xxxx",
-"7983py&z5l..,  xxxx",
-"2i226&z5l54.%. xxxx",
-"272;:t5l545..  xxxx",
-"22;-$&h5454. . xxxx",
-"---1.,&454.&.. xxxx",
-"-*##$#+...&zq0xxxxx",
-"xXO++. + . qfq0xxxx",
-"xxXoOo+.. . qfq0xxx",
-"xxxXX+=++ ..xqq0xxx",
-"xxxxx.....xxxx..xxx",
-"xxxxxxxxxxxxxxxxxxx",
-"xxxxxxxxxxxxxxxxxxx",
-"xxxxxxxxxxxxxxxxxxx",
-"xxxxxxxxxxxxxxxxxxx"
-};
diff --git a/contrib/gtk-tool/main.cc b/contrib/gtk-tool/main.cc
deleted file mode 100644 (file)
index b2de0c2..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-#include "cpluscommon.h"
-#include "gtk.h"
-#include <lber.h>
-#include <ldap.h>
-#include <My_Window.h>
-#include <Gtk_LdapItem.h>
-#include <Gtk_LdapServer.h>
-
-int main(int argc, char **argv) {
-       My_Window *window;
-       Gtk_LdapItem *treeresult;
-       Gtk_Tree *tree, *subtree;
-       Gtk_Tree *machine, *machinetree;
-       Gtk_LdapServer *treeitem;
-       Gtk_Viewport *viewport;
-       char *host = NULL, *prt = NULL;
-       char *base_dn = NULL;
-       int c, port = 0;
-       G_List<char> *hosts;
-       int host_count = 0;
-       char *pair[2];
-
-       hosts = new G_List<char>();
-       while ((c = getopt(argc, argv, "s:p:h")) != -1) {
-               switch (c) {
-                       case 's':
-                       cout << "host" << endl;
-                               hosts = hosts->append(strdup(optarg));
-                               break;
-                       case 'p':
-                               port = atoi(optarg); break;
-                       case 'h':
-                       default:
-                               fprintf(stderr, "Usage: %s ([-s server[:port]])*\n", argv[0]);
-                               exit(-1);
-               }
-       }
-       cout << hosts->length() << "hosts" << endl;
-       for (int f=0; f<hosts->length(); f++) {
-               debug("%s\n", hosts->nth_data(f));
-       }
-       if (hosts->length() == 0) {
-               ldap_get_option(NULL, LDAP_OPT_HOST_NAME, host);
-               hosts = hosts->append(host);
-       }       
-       if (port == 0) port = LDAP_PORT;
-
-       Gtk_Main m(&argc, &argv);
-
-       window = new My_Window(GTK_WINDOW_TOPLEVEL);
-
-       tree = new Gtk_Tree();
-       for (int f=0; f<hosts->length(); f++) {
-               host = strtok(hosts->nth_data(f), ":");
-               prt = strtok(NULL, "\0");
-               if (prt != NULL) port = atoi(prt);
-               else port = LDAP_PORT;
-               treeitem = new Gtk_LdapServer(window, host, port);
-               subtree = treeitem->getSubtree();
-               tree->append(*treeitem);
-               treeitem->set_subtree(*subtree);
-               treeitem->show();
-       }
-       viewport = new Gtk_Viewport();
-       viewport->add(tree);
-       window->scroller->add(viewport);
-       tree->show();
-       viewport->show();
-       window->scroller->show();
-//     treeitem->showDetails();
-//     treeitem->select();
-       window->set_title("gtk-tool");
-       window->activate();
-       window->set_usize(600, 500);
-       window->show();
-
-       m.run();
-       return 0;
-}
diff --git a/contrib/gtk-tool/system.h b/contrib/gtk-tool/system.h
deleted file mode 100644 (file)
index a9ca018..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef MY_SYSTEM_H
-#define MY_SYSTEM_M
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/ioctl.h>
-#include <sys/mman.h>
-#include <linux/string.h> /* for memcpy.h */
-#endif
diff --git a/contrib/gtk-tool/utils.cc b/contrib/gtk-tool/utils.cc
deleted file mode 100644 (file)
index 43fa369..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <stdio.h>
-#include <stdarg.h>
-
-int debug(const char *format,...) {
-#ifdef DEBUG
-       va_list args;
-       int ret;
-       va_start(args, format);
-       ret = vprintf(format, args);
-       va_end(args);
-       return ret;
-#endif
-}
diff --git a/contrib/gtk-tool/utils.h b/contrib/gtk-tool/utils.h
deleted file mode 100644 (file)
index d7a593a..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#ifndef MY_UTIL_H
-#define MY_UTIL_H
-int debug(const char *format,...);
-#endif /* MY_UTIL_H */