summaryrefslogtreecommitdiff
path: root/fluid/function_panel.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-09-11 15:00:48 +0200
committerMatthias Melcher <github@matthiasm.com>2024-09-11 15:00:48 +0200
commita7328d940bea760c0773d2889809217c82fa7081 (patch)
tree94ac731239c760acaef9a099a9ac0a028d153a4e /fluid/function_panel.cxx
parent9b777cc01170a41ed33bb5f98223b8d7bbf5f2b8 (diff)
FLUID: Imporving method name `can_have_children()`
Diffstat (limited to 'fluid/function_panel.cxx')
-rw-r--r--fluid/function_panel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx
index 856a1dddd..a9c4eb265 100644
--- a/fluid/function_panel.cxx
+++ b/fluid/function_panel.cxx
@@ -765,7 +765,7 @@ 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->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);