diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-09-17 18:34:17 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-09-17 18:34:17 +0000 |
| commit | 6a01d2cf69204647d3aae319f66fa41e8e3a128c (patch) | |
| tree | 57ef1a0866ee354d95cdabfcd2957ad16c8f6078 /fluid | |
| parent | 36d32a9ec960d7729b75f54e68d65a8acc46e622 (diff) | |
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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 1 | ||||
| -rw-r--r-- | fluid/code.cxx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 00f9e22a3..2951f5cdd 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -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; } //////////////////////////////////////////////////////////////// diff --git a/fluid/code.cxx b/fluid/code.cxx index df23e3a75..7c3848e77 100644 --- a/fluid/code.cxx +++ b/fluid/code.cxx @@ -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 |
