From 81147753d1fb4db8e96f77523237b200b531fc52 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 23 Nov 2002 06:47:36 +0000 Subject: 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 --- fluid/widget_panel.cxx | 1 - fluid/widget_panel.fl | 2 +- 2 files changed, 1 insertion(+), 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);} } -- cgit v1.2.3