[gtk/macos-ci: 3/3] macos: use deprecated NSOnState for older systems




commit 185f995def7ad1b0e9cf2b3314dcb95503b55387
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 5 16:20:46 2021 -0800

    macos: use deprecated NSOnState for older systems

 gtk/gtkapplication-quartz-menu.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkapplication-quartz-menu.c b/gtk/gtkapplication-quartz-menu.c
index 1de10dbd52..f16f6575b2 100644
--- a/gtk/gtkapplication-quartz-menu.c
+++ b/gtk/gtkapplication-quartz-menu.c
@@ -324,7 +324,9 @@ icon_loaded (GObject      *object,
 
 - (void)didChangeToggled
 {
-  [self setState:gtk_menu_tracker_item_get_toggled (trackerItem) ? NSControlStateValueOn : 
NSControlStateValueOff];
+  G_GNU_BEGIN_DISABLE_DEPRECATED
+  [self setState:gtk_menu_tracker_item_get_toggled (trackerItem) ? NSOnState : NSOffState];
+  G_GNU_END_DISABLE_DEPRECATED
 }
 
 - (void)didChangeAccel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]