]> git.sur5r.net Git - openldap/blobdiff - contrib/gtk-tool/Gtk_LdapServer.h
Annoying little son of a `free' BUG fixed.
[openldap] / contrib / gtk-tool / Gtk_LdapServer.h
index a80dc9fe04be034d5c26ef3b6d6e5efe6960a2cf..4a448a9f39e98537ba87b0d197f13ce0b10d5daf 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef GTK_LDAPSERVER_H
 #define GTK_LDAPSERVER_H
 #include "gtk.h"
+#include "utils.h"
 #include <My_Window.h>
-#include <LdapOpts.h>
-#include <Gtk_LdapItem.h>
+#include <Gtk_LdapTree.h>
 #include <Gtk_LdapTreeItem.h>
 #include <lber.h>
 #include <ldap.h>
@@ -26,9 +26,10 @@ public:
        int c, port;
        My_Window *par;
 //     Gtk_Notebook *notebook;
-       Gtk_Viewport *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);
@@ -36,9 +37,14 @@ public:
        ~Gtk_LdapServer();
        void setType(int t);
        int getConfig();
-       int getSubtree();
-       int getDetails();
+       Gtk_Tree* getSubtree();
+#ifndef LDAP_GET_OPT
+       char* getOptDescription(int option);
+       int getOptType(int option);
+#endif
+       int getOptions();
        int showDetails();
+//     void show_impl();
        void select_impl();
        void collapse_impl();
        void expand_impl();