summaryrefslogtreecommitdiff
path: root/fluid/function_panel.fl
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2021-12-13 18:02:27 +0100
committerMatthias Melcher <github@matthiasm.com>2021-12-13 18:17:07 +0100
commit08c69a548ce78be6a7cd4e227a8d20e6bb1de070 (patch)
tree8763cf21e0b7511a63b9f8c6ad5ecd197e48b504 /fluid/function_panel.fl
parent160832ce04f932fbb3df199aa01d1c93148bb292 (diff)
STR 3442: changed .cxx file, but not .fl
Diffstat (limited to 'fluid/function_panel.fl')
-rw-r--r--fluid/function_panel.fl8
1 files changed, 6 insertions, 2 deletions
diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl
index e3f4d76de..9bfb27446 100644
--- a/fluid/function_panel.fl
+++ b/fluid/function_panel.fl
@@ -528,7 +528,11 @@ Function {make_comment_panel()} {} {
Function {type_make_cb(Fl_Widget*,void*d)} {open return_type void
} {
code {const char *type_name = (const char*)d;
-add_new_widget_from_user(type_name);} {}
+if (Fl_Type::current && Fl_Type::current->is_group())
+ add_new_widget_from_user(type_name, kAddAsLastChild);
+else
+ add_new_widget_from_user(type_name, kAddAfterCurrent);} {selected
+ }
}
Function {make_widgetbin()} {open
@@ -606,7 +610,7 @@ else
} {
Fl_Button {} {
user_data {"Fl_Window"}
- callback type_make_cb selected
+ callback type_make_cb
tooltip Window xywh {89 21 24 24} box THIN_UP_BOX
code0 {o->image(pixmap[1]);}
class Widget_Bin_Window_Button