summaryrefslogtreecommitdiff
path: root/fluid/function_panel.fl
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-12-27 20:56:02 -0500
committerMatthias Melcher <github@matthiasm.com>2024-12-27 20:56:10 -0500
commit050cbabdfe2fdbd1337736f017456012e2437b2d (patch)
tree21efed95ef5368e67a7a6377ab0a3a2f936e4426 /fluid/function_panel.fl
parent2100655a1b55d1c77932b649b758f2eab1107fcb (diff)
Fluid: Rename Stratgy constants to comply with CMP.
Capitalized constants. Added flag to indicate creation by user or file. Removed global variable 'reading_file'.
Diffstat (limited to 'fluid/function_panel.fl')
-rw-r--r--fluid/function_panel.fl5
1 files changed, 3 insertions, 2 deletions
diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl
index aa2ac91ae..bd25f3821 100644
--- a/fluid/function_panel.fl
+++ b/fluid/function_panel.fl
@@ -589,9 +589,10 @@ Function {type_make_cb(Fl_Widget*,void*d)} {open return_type void
} {
code {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);} {selected
+ }
}
Function {make_widgetbin()} {open