diff options
author | John Ralls <jralls@ceridwen.us> | 2020-06-20 10:20:20 -0700 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2020-06-20 10:20:20 -0700 |
commit | c6036592c9c052237cf9ea3ae5684177017cdf83 (patch) | |
tree | 1bb28739854ce87c65feea7cfb95aa4712fcc020 | |
parent | 3f5cf710396e4ed3393a019f183a56ec4dd62f9a (diff) | |
download | gtk+-c6036592c9c052237cf9ea3ae5684177017cdf83.tar.gz |
[Quartz]Silence type mismatch warning.
-rw-r--r-- | gtk/gtkapplication-quartz.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkapplication-quartz.c b/gtk/gtkapplication-quartz.c index fec5025496..f614dea296 100644 --- a/gtk/gtkapplication-quartz.c +++ b/gtk/gtkapplication-quartz.c @@ -56,8 +56,11 @@ typedef struct } GtkApplicationImplQuartz; G_DEFINE_TYPE (GtkApplicationImplQuartz, gtk_application_impl_quartz, GTK_TYPE_APPLICATION_IMPL) - +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 +@interface GtkApplicationQuartzDelegate : NSObject <NSApplicationDelegate> +#else @interface GtkApplicationQuartzDelegate : NSObject +#endif { GtkApplicationImplQuartz *quartz; } @@ -162,7 +165,7 @@ gtk_application_impl_quartz_startup (GtkApplicationImpl *impl, if (register_session) { quartz->delegate = [[GtkApplicationQuartzDelegate alloc] initWithImpl:quartz]; - [NSApp setDelegate: quartz->delegate]; + [NSApp setDelegate: (id)(quartz->delegate)]; } quartz->muxer = gtk_action_muxer_new (); |