]> git.sur5r.net Git - openldap/blob - contrib/gtk-tool/My_Scroller.cc
Update contrib with latest from -devel, including php3-tool and gtk-tool.
[openldap] / contrib / gtk-tool / My_Scroller.cc
1 #include "My_Scroller.h"
2
3 #include <gtk--/container.h>
4
5 void My_Scroller::remove_child(int i) {
6         cout << "Unparenting child[" << i << "]" << endl;
7         this->children[i]->unparent();
8         cout << "Deleting child[" << i << "] from children" << endl;
9 //      this->remove(children()->first());
10         delete this->children[i];
11         cout << "done" << endl;
12 }
13 void My_Scroller::add_child(Gtk_Widget *w) {
14         cout << "My_Scroller::add_child()" << endl;
15 //      w->reparent(this);
16         this->add(w);
17         cout << "done" << endl;
18         this->children[0] = w;
19 }