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_Widget_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_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 5557eb679..8923a97cb 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -62,6 +62,7 @@ const char* subclassname(Fl_Type* l) { Fl_Widget_Type* p = (Fl_Widget_Type*)l; const char* c = p->subclass(); if (c) return c; + if (l->is_class()) return "Fl_Group"; if (p->o->type() == FL_WINDOW+1) return "Fl_Double_Window"; } return l->type_name(); @@ -1454,7 +1455,7 @@ void Fl_Widget_Type::write_static() { user_data_type() ? user_data_type() : "void*"); const char* c = array_name(this); const char* k = class_name(1); - if (c && !k) { + if (c && !k && !is_class()) { write_c("\n"); if (!public_) write_c("static "); else write_h("extern %s *%s;\n", t, c); |
