diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-11-21 19:57:50 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-11-21 19:57:50 +0100 |
| commit | 56955a33a30662ce2dd621228abb9089c0a814fb (patch) | |
| tree | 8cd7b41dd48ae028aa3713a96f188b977bf7dea7 /test | |
| parent | 910c7d18ebb465cd58d13a5eb2bd03d7b9f414cd (diff) | |
Additional menu code cleanup.
Better variable names,
More descriptive integer types.
Diffstat (limited to 'test')
| -rw-r--r-- | test/menubar.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx index 8295af8e1..067661cfa 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -228,12 +228,11 @@ void menu_location_cb(Fl_Widget* w, void* data) smenubar = new Fl_Sys_Menu_Bar(0,0,0,30); smenubar->menu(menu); smenubar->callback(test_cb); - } - else { // switch to window menu bar + } else { // switch to window menu bar menubar->copy(smenubar->menu()); delete smenubar; menubar->show(); - } + } } #endif // HAS_MAC_APP_MENU |
