From d85b67beac200357756e61b25f05f64c7c103501 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 20 Oct 2024 20:03:09 +0200 Subject: Fluid: update function_panel.fl from function_panel.cxx Note: in commit a7328d940bea760c0773d2889809217c82fa7081 "FLUID: Imporving method name `can_have_children()`" the file function_panel.cxx was edited w/o the corresponding fluid (.fl) file. This commit fixes this, assuming the .cxx file was correct. --- fluid/function_panel.fl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fluid/function_panel.fl') diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl index 6e153ded3..faa465e8d 100644 --- a/fluid/function_panel.fl +++ b/fluid/function_panel.fl @@ -588,7 +588,7 @@ Function {make_comment_panel()} {open 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->is_parent()) +if (Fl_Type::current && Fl_Type::current->can_have_children()) add_new_widget_from_user(type_name, kAddAsLastChild); else add_new_widget_from_user(type_name, kAddAfterCurrent);} {} -- cgit v1.2.3