From 050cbabdfe2fdbd1337736f017456012e2437b2d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 27 Dec 2024 20:56:02 -0500 Subject: Fluid: Rename Stratgy constants to comply with CMP. Capitalized constants. Added flag to indicate creation by user or file. Removed global variable 'reading_file'. --- fluid/Fl_Group_Type.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/Fl_Group_Type.cxx') diff --git a/fluid/Fl_Group_Type.cxx b/fluid/Fl_Group_Type.cxx index bac04a462..d3ec98fce 100644 --- a/fluid/Fl_Group_Type.cxx +++ b/fluid/Fl_Group_Type.cxx @@ -117,7 +117,7 @@ void group_cb(Fl_Widget *, void *) { undo_checkpoint(); undo_suspend(); Fl_Type::current = qq; - Fl_Group_Type *n = (Fl_Group_Type*)(Fl_Group_type.make(kAddAsLastChild)); + Fl_Group_Type *n = (Fl_Group_Type*)(Fl_Group_type.make(Strategy::AS_LAST_CHILD)); n->move_before(q); n->o->resize(q->o->x(),q->o->y(),q->o->w(),q->o->h()); for (Fl_Type *t = qq->next; t && (t->level > qq->level);) { @@ -126,7 +126,7 @@ void group_cb(Fl_Widget *, void *) { continue; } Fl_Type *nxt = t->remove(); - t->add(n, kAddAsLastChild); + t->add(n, Strategy::AS_LAST_CHILD); t = nxt; } fix_group_size(n); -- cgit v1.2.3