From b23984766932ed4d4feb13d76c9c92d1e5bb09ab Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 12 Dec 2010 20:06:04 +0000 Subject: Fluid generates correct Fl_Int_Iput and Fl_Float_Input plus include line. STR 2476 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Widget_Type.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 221afb248..5fe556078 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -67,6 +67,10 @@ const char* subclassname(Fl_Type* l) { if (c) return c; if (l->is_class()) return "Fl_Group"; if (p->o->type() == FL_WINDOW+1) return "Fl_Double_Window"; + if (strcmp(p->type_name(), "Fl_Input") == 0) { + if (p->o->type() == FL_FLOAT_INPUT) return "Fl_Float_Input"; + if (p->o->type() == FL_INT_INPUT) return "Fl_Int_Input"; + } } return l->type_name(); } -- cgit v1.2.3