Remove use of deprecated member function Fl_Menu_Item::setonly()

This commit is contained in:
ManoloFLTK
2025-09-05 09:25:59 +02:00
parent 93fae41fc2
commit 8472df82d0
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -132,7 +132,6 @@ The public C API to Wayland, xkb, EGL and libdecor libraries are obtained with
#include <xkbcommon/xkbcommon-compose.h> #include <xkbcommon/xkbcommon-compose.h>
#include <linux/input.h> // for BTN_LEFT, BTN_RIGHT, BTN_MIDDLE #include <linux/input.h> // for BTN_LEFT, BTN_RIGHT, BTN_MIDDLE
#include "../../../libdecor/src/libdecor.h" #include "../../../libdecor/src/libdecor.h"
#include "../../../libdecor/src/libdecor-plugin.h"
#if HAVE_GL #if HAVE_GL
# include <wayland-egl.h> # include <wayland-egl.h>
# include <EGL/egl.h> # include <EGL/egl.h>
+1 -2
View File
@@ -1474,8 +1474,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil;
if (!item->label()) break; if (!item->label()) break;
if (item->user_data() == window) { if (item->user_data() == window) {
if (!item->value()) { if (!item->value()) {
item->setonly(); Fl_MacOS_Sys_Menu_Bar_Driver::driver()->setonly(item);
fl_sys_menu_bar->update();
} }
break; break;
} }