summaryrefslogtreecommitdiff
path: root/fluid/function_panel.fl
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-07-20 13:48:43 +0200
committerMatthias Melcher <github@matthiasm.com>2023-07-20 13:49:19 +0200
commit43fe6ee02720782ce9da715b57c8d0037e6ef641 (patch)
tree10ba1b2a287ba93c4dc15b3a5340549c3a9f57b1 /fluid/function_panel.fl
parent4ec02555ef84965cc83e62e4181f091103bfb269 (diff)
FLUID improves positioning and sizing new widgets
Better default sizes for text based widgets and menu managers Better Menu refresh on custom text heights Smarter positioning of menu bars and groups inside tabs Fixes wrong include guard
Diffstat (limited to 'fluid/function_panel.fl')
-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 b597ac34e..8977fecdf 100644
--- a/fluid/function_panel.fl
+++ b/fluid/function_panel.fl
@@ -537,7 +537,7 @@ Function {make_comment_panel()} {open
Function {type_make_cb(Fl_Widget*,void*d)} {return_type void
} {
code {const char *type_name = (const char*)d;
-if (Fl_Type::current && Fl_Type::current->is_group())
+if (Fl_Type::current && Fl_Type::current->is_parent())
add_new_widget_from_user(type_name, kAddAsLastChild);
else
add_new_widget_from_user(type_name, kAddAfterCurrent);} {}