From: Arjan Molenaar Date: Sat, 12 Nov 2022 19:59:16 +0000 (+0100) Subject: Remove old dragImage code X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~79^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=410fa9871f0111a99177e901b7e7e9af8d01a96e;p=gtk4.git Remove old dragImage code New code (macOS 10+ should support the NSDraggingSource protocol: https://developer.apple.com/documentation/appkit/nsdraggingsource. --- diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c index 0eb1ec7ca8..36964391b3 100644 --- a/gdk/macos/GdkMacosWindow.c +++ b/gdk/macos/GdkMacosWindow.c @@ -576,6 +576,8 @@ typedef NSString *CALayerContentsGravity; initialResizeLocation = convert_nspoint_to_screen (self, [self mouseLocationOutsideOfEventStream]); } +// NSDraggingDestination protocol + -(NSDragOperation)draggingEntered:(id )sender { NSPoint location = [sender draggingLocation]; @@ -665,9 +667,9 @@ typedef NSString *CALayerContentsGravity; return NO; } --(void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation -{ -} +// NSDraggingSource protocol +// ... +// end -(void)setStyleMask:(NSWindowStyleMask)styleMask {