diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-26 00:38:58 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-26 00:39:10 +0200 |
| commit | 6d5021c00e71db7d0bc36c8622cb256fd5088cd6 (patch) | |
| tree | 5074e3fe2e28e481ce183219e0de8d61f1bb0e72 /fluid/Fl_Menu_Type.cxx | |
| parent | 06d12892f90233c4ec50109fc2d2f06c5ae14432 (diff) | |
FLUID: Adds initial MergeBack feature.
Diffstat (limited to 'fluid/Fl_Menu_Type.cxx')
| -rw-r--r-- | fluid/Fl_Menu_Type.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index e190feb94..938ca0f8f 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -277,6 +277,7 @@ void Fl_Menu_Item_Type::write_static(Fd_Code_Writer& f) { f.write_c(", %s", ut); if (use_v) f.write_c(" v"); f.write_c(") {\n"); + f.tag(FD_TAG_GENERIC, 0); f.write_c_indented(callback(), 1, 0); if (*(d-1) != ';' && *(d-1) != '}') { const char *p = strrchr(callback(), '\n'); @@ -286,7 +287,9 @@ void Fl_Menu_Item_Type::write_static(Fd_Code_Writer& f) { // statement... if (*p != '#' && *p) f.write_c(";"); } - f.write_c("\n}\n"); + f.write_c("\n"); + f.tag(FD_TAG_MENU_CALLBACK, get_uid()); + f.write_c("}\n"); if (k) { f.write_c("void %s::%s(Fl_Menu_* o, %s v) {\n", k, cn, ut); f.write_c("%s((%s*)(o", f.indent(1), k); |
