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/function_panel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/function_panel.cxx') diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index 6147d59f0..af46301a1 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -766,9 +766,9 @@ Fl_Double_Window* make_comment_panel() { void type_make_cb(Fl_Widget*,void*d) { const char *type_name = (const char*)d; if (Fl_Type::current && Fl_Type::current->can_have_children()) - add_new_widget_from_user(type_name, kAddAsLastChild); + add_new_widget_from_user(type_name, Strategy::AS_LAST_CHILD); else - add_new_widget_from_user(type_name, kAddAfterCurrent); + add_new_widget_from_user(type_name, Strategy::AFTER_CURRENT); } Fl_Window *widgetbin_panel=(Fl_Window *)0; -- cgit v1.2.3