[Libreoffice-commits] core.git: vcl/osx
Douglas Mencken
dougmencken at gmail.com
Wed Jul 2 14:43:31 PDT 2014
vcl/osx/DropTarget.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit fcb08724793611ea5e84ff2b848a1907bbfec60a
Author: Douglas Mencken <dougmencken at gmail.com>
Date: Tue Jul 1 08:11:19 2014 -0400
fix 'NSCursor' may not respond to operationNotAllowedCursor,dragCopyCursor
related commit: e4653eee7680831e6d0995d51d80fb63309c03ab
Change-Id: Iba30c90336bf08d15d5990d6e1380867eee3564e
Reviewed-on: https://gerrit.libreoffice.org/10013
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx
index 7ee0f5b..e8179a9 100644
--- a/vcl/osx/DropTarget.cxx
+++ b/vcl/osx/DropTarget.cxx
@@ -264,9 +264,17 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
}
if (dragOp == NSDragOperationNone)
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ SetThemeCursor(kThemeNotAllowedCursor);
+#else
[[NSCursor operationNotAllowedCursor] set];
+#endif
else if (dragOp == NSDragOperationCopy)
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
+ SetThemeCursor(kThemeCopyArrowCursor);
+#else
[[NSCursor dragCopyCursor] set];
+#endif
else
[[NSCursor arrowCursor] set];
More information about the Libreoffice-commits
mailing list