My_Scroller.cc 511 Bytes
Newer Older
Kurt Zeilenga's avatar
Kurt Zeilenga committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "My_Scroller.h"

#include <gtk--/container.h>

void My_Scroller::remove_child(int i) {
	cout << "Unparenting child[" << i << "]" << endl;
	this->children[i]->unparent();
	cout << "Deleting child[" << i << "] from children" << endl;
//	this->remove(children()->first());
	delete this->children[i];
	cout << "done" << endl;
}
void My_Scroller::add_child(Gtk_Widget *w) {
	cout << "My_Scroller::add_child()" << endl;
//	w->reparent(this);
	this->add(w);
	cout << "done" << endl;
	this->children[0] = w;
}