diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-07-02 15:42:46 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-07-02 15:42:46 +0200 |
| commit | 5bf1333f07ed90db7dbb569c9659c52866ec7160 (patch) | |
| tree | 53981a6ae5eef4dcf288c27b5327a4e51bd921a5 /src | |
| parent | 5475f2dddd7a76e1ee939b99d1ab6f816f4a3271 (diff) | |
Set Fl_Menu_Item::setonly() to deprecated
for the version without the starting argument.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Menu_.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_Menu_.cxx b/src/Fl_Menu_.cxx index 6a34278ff..0d10ef01c 100644 --- a/src/Fl_Menu_.cxx +++ b/src/Fl_Menu_.cxx @@ -461,6 +461,12 @@ void Fl_Menu_::setonly(Fl_Menu_Item* item) { } } +/** + \deprecated Please use Fl_Menu_Item::setonly(Fl_Menu_Item const* first) instead. + */ +void Fl_Menu_Item::setonly() { setonly(nullptr); } + + /** Turns the radio item "on" for the menu item and turns "off" adjacent radio items set. \note This method is dangerous if radio items are first in the menu. Make sure that \p first is set ciorrectly or use Fl_Menu_::setonly(Fl_Menu_Item*) instead. |
