[Quartz]Silence type mismatch warning.

This commit is contained in:
John Ralls
2020-06-20 10:20:20 -07:00
parent 3f5cf71039
commit c6036592c9

View File

@@ -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 ();