summaryrefslogtreecommitdiff
path: root/FL/Fl_Pack.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-23 08:50:29 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-23 08:50:29 +0200
commit54cff14f87fd664ae88fa22dae333970957cfcd7 (patch)
treee121469c22290c3ec266dc88671eb3efbdcc0fd4 /FL/Fl_Pack.H
parent7a35e256bc2c57b41c595fb2c5a46d61bb5fc68f (diff)
Fix for "Fl_Pack should override clear() to set resizable(0)" (#993)
Diffstat (limited to 'FL/Fl_Pack.H')
-rw-r--r--FL/Fl_Pack.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/Fl_Pack.H b/FL/Fl_Pack.H
index 1f8db0155..3da236b19 100644
--- a/FL/Fl_Pack.H
+++ b/FL/Fl_Pack.H
@@ -93,6 +93,9 @@ public:
uchar horizontal() const {return type();}
void resize(int X, int Y, int W, int H) FL_OVERRIDE;
+ /** Deletes all child widgets with Fl_Group::clear().
+ And sets to NULL the resizable() widget. */
+ void clear() { Fl_Group::clear(); resizable(NULL); }
};
#endif