Fixed window class code generation.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-03-28 13:35:12 +00:00
parent c94a59c3f7
commit bae6f62ea8
2 changed files with 2 additions and 2 deletions

View File

@ -1445,7 +1445,7 @@ int isdeclare(const char *c) {
void Fl_Widget_Type::write_static() {
const char* t = subclassname(this);
if (!subclass()) write_declare("#include <FL/%s.H>", t);
if (!subclass() || is_class()) write_declare("#include <FL/%s.H>", t);
for (int n=0; n < NUM_EXTRA_CODE; n++) {
if (extra_code(n) && isdeclare(extra_code(n)))
write_declare("%s", extra_code(n));

View File

@ -1350,7 +1350,7 @@ void Fl_Widget_Class_Type::write_code1() {
write_c("%s::%s(int W, int H, const char *L)\n", name(), name());
write_c(" : %s(0, 0, W, H, L) {\n", c);
write_c(" clear_flag(FL_FORCE_POSITION);\n");
write_c(" clear_flag(16);\n");
write_c(" _%s();\n", name());
write_c("}\n\n");