summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-20 20:03:09 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-20 20:03:09 +0200
commitd85b67beac200357756e61b25f05f64c7c103501 (patch)
tree13b690b1f331b47d4ecc5a38ea1c05ad7013c7c9
parent32ac2ce0acab2a3915f229bb149c6d7fc73d3546 (diff)
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.
-rw-r--r--fluid/function_panel.fl2
1 files changed, 1 insertions, 1 deletions
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);} {}