gtk 3.24.2 cannot be compiled on macOS Sierra with Quartz backend
Steps to reproduce
- Try compiling gtk 3.24.2 on macOS Sierra with Quartz backend
Current behavior
Compilation aborts with error:
GdkQuartzNSWindow.c:413:19: error: assigning to 'NSPoint' (aka 'struct CGPoint') from incompatible type 'id'
currentLocation = [self convertPointToScreen:[self mouseLocationOutsideOfEventStream]];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GdkQuartzNSWindow.c:448:23: error: assigning to 'NSPoint' (aka 'struct CGPoint') from incompatible type 'id'
initialMoveLocation = [self convertPointToScreen:[self mouseLocationOutsideOfEventStream]];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GdkQuartzNSWindow.c:469:18: error: assigning to 'NSPoint' (aka 'struct CGPoint') from incompatible type 'id'
mouse_location = [self convertPointToScreen:[self mouseLocationOutsideOfEventStream]];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GdkQuartzNSWindow.c:559:25: error: assigning to 'NSPoint' (aka 'struct CGPoint') from incompatible type 'id'
initialResizeLocation = [self convertPointToScreen:[self mouseLocationOutsideOfEventStream]];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC gdkdisplaymanager-quartz.lo
GdkQuartzNSWindow.c:698:16: error: assigning to 'NSPoint' (aka 'struct CGPoint') from incompatible type 'id'
screen_point = [self convertPointToScreen:point];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GdkQuartzNSWindow.c:732:16: error: assigning to 'NSPoint' (aka 'struct CGPoint') from incompatible type 'id'
screen_point = [self convertPointToScreen:point];
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
make[3]: *** [GdkQuartzNSWindow.lo] Error 1
Expected outcome
A compilation without errors
Version information
Gtk 3.24.2, compiled with Quartz backend on macOS Sierra, which is still officially supported by Apple!