summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2002-11-03 00:01:21 +0000
committerMatthias Melcher <fltk@matthiasm.com>2002-11-03 00:01:21 +0000
commitc3de2a22c058b26700cce7ebeb26ca20072dc50f (patch)
treebcbd8e2be5c70d29fbd1d65028a3abac64c77310 /fluid/Fl_Function_Type.cxx
parentf3078e51e015215432c375ccd24a2d3c93342c52 (diff)
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
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx9
1 files changed, 5 insertions, 4 deletions
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 $".
//