From c3de2a22c058b26700cce7ebeb26ca20072dc50f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 3 Nov 2002 00:01:21 +0000 Subject: Replaced 'callback' and 'code' input in FLUID with Fl_Text_Editor. Made widget pannel resize only text fields (which I see as the logical way to do it. Opinions welcome). Matthias git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Function_Type.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'fluid/Fl_Function_Type.cxx') diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index a049f7437..f24ab48df 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.8 2002/08/09 22:56:59 easysw Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.9 2002/11/03 00:01:19 matthiaswm Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // @@ -325,7 +325,8 @@ Fl_Type *Fl_Code_Type::make() { void Fl_Code_Type::open() { if (!code_panel) make_code_panel(); - code_input->static_value(name()); + const char *text = name(); + code_input->buffer()->text( text ? text : "" ); code_panel->show(); const char* message = 0; for (;;) { // repeat as long as there are errors @@ -336,7 +337,7 @@ void Fl_Code_Type::open() { else if (w == code_panel_ok) break; else if (!w) Fl::wait(); } - const char*c = code_input->value(); + const char*c = code_input->buffer()->text(); message = c_check(c); if (message) continue; name(c); break; @@ -704,5 +705,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.8 2002/08/09 22:56:59 easysw Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.9 2002/11/03 00:01:19 matthiaswm Exp $". // -- cgit v1.2.3