Handle window class methods.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-03-28 13:38:23 +00:00
parent bae6f62ea8
commit 119f78bee0
+1
View File
@@ -335,6 +335,7 @@ Fl_Type *Fl_Window_Type::make() {
} }
void Fl_Window_Type::add_child(Fl_Type* cc, Fl_Type* before) { void Fl_Window_Type::add_child(Fl_Type* cc, Fl_Type* before) {
if (!cc->is_widget()) return;
Fl_Widget_Type* c = (Fl_Widget_Type*)cc; Fl_Widget_Type* c = (Fl_Widget_Type*)cc;
Fl_Widget* b = before ? ((Fl_Widget_Type*)before)->o : 0; Fl_Widget* b = before ? ((Fl_Widget_Type*)before)->o : 0;
((Fl_Window*)o)->insert(*(c->o), b); ((Fl_Window*)o)->insert(*(c->o), b);