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 /FL/Fl_Menu_Item.H | |
| parent | 5475f2dddd7a76e1ee939b99d1ab6f816f4a3271 (diff) | |
Set Fl_Menu_Item::setonly() to deprecated
for the version without the starting argument.
Diffstat (limited to 'FL/Fl_Menu_Item.H')
| -rw-r--r-- | FL/Fl_Menu_Item.H | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H index fda9e5542..ae2bb53ab 100644 --- a/FL/Fl_Menu_Item.H +++ b/FL/Fl_Menu_Item.H @@ -438,7 +438,9 @@ struct FL_EXPORT Fl_Menu_Item { /** Turns the check or radio item "off" for the menu item. */ void clear() {flags &= ~FL_MENU_VALUE;} - void setonly(Fl_Menu_Item const* first = NULL); + FL_DEPRECATED("since 1.3 - use setonly(Fl_Menu_Item const* first) instead", + void setonly()); + void setonly(Fl_Menu_Item const* first); /** Gets the visibility of an item. */ int visible() const {return !(flags&FL_MENU_INVISIBLE);} |
