commit 8472df82d0c4389eff9f1849dd91eb7c3a413920
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Fri Sep 5 09:25:59 2025 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Fri Sep 5 09:25:59 2025 +0200
Remove use of deprecated member function Fl_Menu_Item::setonly()
documentation/src/wayland.dox | 1 -
src/Fl_cocoa.mm | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git documentation/src/wayland.dox documentation/src/wayland.dox
index b4c9d01..21806eb 100644
--- documentation/src/wayland.dox
+++ documentation/src/wayland.dox
@@ -132,7 +132,6 @@ The public C API to Wayland, xkb, EGL and libdecor libraries are obtained with
#include <xkbcommon/xkbcommon-compose.h>
#include <linux/input.h> // for BTN_LEFT, BTN_RIGHT, BTN_MIDDLE
#include "../../../libdecor/src/libdecor.h"
-#include "../../../libdecor/src/libdecor-plugin.h"
#if HAVE_GL
# include <wayland-egl.h>
# include <EGL/egl.h>
diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index ccafa20..13d536c 100644
--- src/Fl_cocoa.mm
+++ src/Fl_cocoa.mm
@@ -1474,8 +1474,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
if (!item->label()) break;
if (item->user_data() == window) {
if (!item->value()) {
- item->setonly();
- fl_sys_menu_bar->update();
+ Fl_MacOS_Sys_Menu_Bar_Driver::driver()->setonly(item);
}
break;
}
[ Direct Link to Message ]