Skip to content

Commit

Permalink
Fluid: update function_panel.fl from function_panel.cxx
Browse files Browse the repository at this point in the history
Note: in commit a7328d9
  "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.
  • Loading branch information
Albrecht Schlosser committed Oct 20, 2024
1 parent 32ac2ce commit d85b67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluid/function_panel.fl
Original file line number Diff line number Diff line change
Expand Up @@ -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);} {}
Expand Down

0 comments on commit d85b67b

Please sign in to comment.