summaryrefslogtreecommitdiff
path: root/vcl/osx/DropTarget.cxx
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-07-01 08:11:19 -0400
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-02 21:43:03 +0000
commitfcb08724793611ea5e84ff2b848a1907bbfec60a (patch)
tree9ef58dbdf636eff5ed00fb4f53786b9e4463dc08 /vcl/osx/DropTarget.cxx
parentf711b333cfa24f3c7134f799b39a634ca1a0a885 (diff)
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@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/osx/DropTarget.cxx')
-rw-r--r--vcl/osx/DropTarget.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx
index 7ee0f5b48e1e..e8179a9ababa 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];