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/custom_widgets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fluid/custom_widgets.cxx') diff --git a/fluid/custom_widgets.cxx b/fluid/custom_widgets.cxx index 887e2ba14..b50169f3a 100644 --- a/fluid/custom_widgets.cxx +++ b/fluid/custom_widgets.cxx @@ -110,7 +110,7 @@ int Widget_Bin_Window_Button::handle(int inEvent) // create a new window here Fl_Type *prototype = typename_to_prototype((char*)user_data()); if (prototype) { - Fl_Type *new_type = add_new_widget_from_user(prototype, kAddAfterCurrent); + Fl_Type *new_type = add_new_widget_from_user(prototype, Strategy::AFTER_CURRENT); if (new_type && new_type->is_a(ID_Window)) { Fl_Window_Type *new_window = (Fl_Window_Type*)new_type; Fl_Window *w = (Fl_Window *)new_window->o; -- cgit v1.2.3