From eec7f80e949dd78874741a6c17fe66ec74cec3a5 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 8 Jan 2009 17:12:34 +0000 Subject: Widgets now remove themselves from their parent group (if any), when destroyed (STR #1894). Fl_Group::clear() removes widget by widget (one at a time) to allow widgets to remove other related widgets from the same group, when they are deleted. Also fixed a bug in Fl_Value_Input (added a destructor), because it used a non-Fl_Group widget as parent of another widget. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Value_Input.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL') diff --git a/FL/Fl_Value_Input.H b/FL/Fl_Value_Input.H index 82b5cc8f2..6cba43e6d 100644 --- a/FL/Fl_Value_Input.H +++ b/FL/Fl_Value_Input.H @@ -76,6 +76,7 @@ public: void draw(); void resize(int,int,int,int); Fl_Value_Input(int x,int y,int w,int h,const char *l=0); + ~Fl_Value_Input(); /** See void Fl_Value_Input::soft(char s) */ void soft(char s) {soft_ = s;} -- cgit v1.2.3