diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-20 00:34:48 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-20 00:34:48 +0000 |
| commit | 2ab7525eb3bc2fc3aae41df8805770fce3d277fd (patch) | |
| tree | 6843da63fd218f82b6eba058205b0b1f53b1fa58 /fluid/Fl_Window_Type.cxx | |
| parent | 2d2b24b78105bf7a29063a43864762b7a9f90c54 (diff) | |
Treat all "Window" classed widgets as window widgets.
Don't automatically include non-FLTK headers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 2951f5cdd..dec2cddef 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -1418,10 +1418,7 @@ void Fl_Widget_Class_Type::write_code1() { if (!c) c = "Fl_Group"; write_h("\nclass %s : public %s {\n", name(), c); - if (!strcmp(c, "Fl_Window") || - !strcmp(c, "Fl_Double_Window") || - !strcmp(c, "Fl_Gl_Window") || - !strcmp(c, "Fl_Overlay_Window")) { + if (strstr(c, "Window")) { write_h(" void _%s();\n", name()); write_h("public:\n"); write_h(" %s(int X, int Y, int W, int H, const char *L = 0);\n", name()); |
