diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-28 05:04:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-28 05:04:13 +0000 |
| commit | c94a59c3f7fb34947c02ee4fc153828e8e178feb (patch) | |
| tree | 09602036c4813543e85672f9cabd885bdb9a3664 /fluid/Fl_Function_Type.cxx | |
| parent | 2abfda36ab9e32bbd8c93ab43eb006fe6778146a (diff) | |
Add support to FLUID for widget class creation without the intermediate
class stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index f464378aa..eb90b4f15 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -969,11 +969,14 @@ void Fl_Class_Type::open() { Fl_Class_Type Fl_Class_type; static Fl_Class_Type *current_class; +extern Fl_Widget_Class_Type *current_widget_class; extern int varused_test; void write_public(int state) { - if (!current_class || varused_test) return; - if (current_class->write_public_state == state) return; - current_class->write_public_state = state; + if ((!current_class && !current_widget_class) || varused_test) return; + if (current_class && current_class->write_public_state == state) return; + if (current_widget_class && current_widget_class->write_public_state == state) return; + if (current_class) current_class->write_public_state = state; + if (current_widget_class) current_widget_class->write_public_state = state; write_h(state ? "public:\n" : "private:\n"); } |
