From 6a01d2cf69204647d3aae319f66fa41e8e3a128c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 17 Sep 2006 18:34:17 +0000 Subject: 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 --- fluid/Fl_Window_Type.cxx | 1 - fluid/code.cxx | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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 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 -- cgit v1.2.3