Fix handling of public/private stuff for widget classes.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2006-09-17 18:34:17 +00:00
parent 36d32a9ec9
commit 6a01d2cf69
2 changed files with 2 additions and 1 deletions

View File

@ -1471,7 +1471,6 @@ void Fl_Widget_Class_Type::write_code2() {
if (((Fl_Window*)o)->resizable() == o)
write_c("%sresizable(this);\n", indent());
write_c("}\n");
current_widget_class = 0L;
}
////////////////////////////////////////////////////////////////

View File

@ -273,6 +273,7 @@ void write_h(const char* format,...) {
#include <FL/filename.H>
int write_number;
int write_sourceview;
extern Fl_Widget_Class_Type *current_widget_class;
// recursively dump code, putting children between the two parts
// of the parent code:
@ -314,6 +315,7 @@ static Fl_Type* write_code(Fl_Type* p) {
}
write_h("};\n");
current_widget_class = 0L;
} else {
for (q = p->next; q && q->level > p->level;) q = write_code(q);
// write all code that come after the children