diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-23 06:47:36 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-11-23 06:47:36 +0000 |
| commit | 81147753d1fb4db8e96f77523237b200b531fc52 (patch) | |
| tree | f555ab7dac6d1474c8dafdfcb1ca94784524dc5b | |
| parent | f0b0e4c00aa5ec7e3aff361dde6f5a695811237d (diff) | |
Only set the callback when the text is changed; otherwise when you set
the properties of multiple widgets, the callbacks will be changed for
all of the widgets...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | fluid/widget_panel.cxx | 1 | ||||
| -rw-r--r-- | fluid/widget_panel.fl | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx index 26af85ea7..b62a6e234 100644 --- a/fluid/widget_panel.cxx +++ b/fluid/widget_panel.cxx @@ -449,7 +449,6 @@ Fl_Double_Window* make_widget_panel() { o->textfont(4); o->callback((Fl_Callback*)callback_cb); o->align(FL_ALIGN_LEFT); - o->when(FL_WHEN_RELEASE_ALWAYS); Fl_Group::current()->resizable(o); o->buffer(new Fl_Text_Buffer()); o->textfont(FL_COURIER); diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 4cd4d677c..ad216ec55 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -414,7 +414,7 @@ image} Fl_Text_Editor {} { label {Callback:} callback callback_cb selected - tooltip {The callback function or code for the widget.} xywh {102 177 291 86} box NO_BOX align 4 when 6 textfont 4 resizable + tooltip {The callback function or code for the widget.} xywh {102 177 291 86} box NO_BOX align 4 textfont 4 resizable code0 {o->buffer(new Fl_Text_Buffer());} code1 {o->textfont(FL_COURIER);} } |
