[gtk/macos-ci: 3/3] macos: use deprecated NSOnState for older systems
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/macos-ci: 3/3] macos: use deprecated NSOnState for older systems
- Date: Wed, 6 Jan 2021 00:21:26 +0000 (UTC)
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]