From 4b5985eb49e057aa69b8ba4e91d0ad11e1cc87ff Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 27 Oct 2023 18:31:14 +0200 Subject: FLUID: Fixes issues when pasting widget into Fl_Flex #809 * new virtual function layout_widget() to inform parents after all children were added --- fluid/Fl_Group_Type.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fluid/Fl_Group_Type.h') diff --git a/fluid/Fl_Group_Type.h b/fluid/Fl_Group_Type.h index 67791f981..36a4821df 100644 --- a/fluid/Fl_Group_Type.h +++ b/fluid/Fl_Group_Type.h @@ -46,7 +46,6 @@ public: Fl_Widget *widget(int X,int Y,int W,int H) FL_OVERRIDE { igroup *g = new igroup(X,Y,W,H); Fl_Group::current(0); return g;} Fl_Widget_Type *_make() FL_OVERRIDE {return new Fl_Group_Type();} - Fl_Type *make(Strategy strategy) FL_OVERRIDE; void write_code1(Fd_Code_Writer& f) FL_OVERRIDE; void write_code2(Fd_Code_Writer& f) FL_OVERRIDE; void add_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; @@ -106,9 +105,10 @@ public: void copy_properties() FL_OVERRIDE; void postprocess_read() FL_OVERRIDE; void write_code2(Fd_Code_Writer& f) FL_OVERRIDE; - void add_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; - void move_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; +// void add_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; +// void move_child(Fl_Type*, Fl_Type*) FL_OVERRIDE; void remove_child(Fl_Type*) FL_OVERRIDE; + void layout_widget() FL_OVERRIDE; void change_subtype_to(int n); static int parent_is_flex(Fl_Type*); static int size(Fl_Type*, char fixed_only=0); -- cgit v1.2.3