diff options
| author | Yavor Doganov | 2025-12-30 07:18:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2026-01-10 15:58:38 +0200 |
| commit | e5a8c4ae00cbd71ad14caeac627b9af49a0bb179 (patch) | |
| tree | 02c8fcffa38a078b884c97f044f73d118bce21de | |
| parent | 57df5d5cbaf88b21ad53152b145b5b0c8303951d (diff) | |
| download | emacs-e5a8c4ae00cbd71ad14caeac627b9af49a0bb179.tar.gz emacs-e5a8c4ae00cbd71ad14caeac627b9af49a0bb179.zip | |
; NS: Fix typo in -resetCursorRects implementations
* src/nsterm.m ([EmacsView resetCursorRects]): Fix typo in
selector name; restrict respondsToSelector: check to Cocoa.
([EmacsScroller resetCursorRects]): Likewise. (Bug#80098)
| -rw-r--r-- | src/nsterm.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index f96096242d2..0e8738d7c1b 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -7058,8 +7058,8 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action) | |||
| 7058 | [self addCursorRect: visible cursor: currentCursor]; | 7058 | [self addCursorRect: visible cursor: currentCursor]; |
| 7059 | 7059 | ||
| 7060 | #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 101300 | 7060 | #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 101300 |
| 7061 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 | 7061 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 |
| 7062 | if ([currentCursor respondsToSelector: @selector(setOnMouseEntered)]) | 7062 | if ([currentCursor respondsToSelector: @selector(setOnMouseEntered:)]) |
| 7063 | #endif | 7063 | #endif |
| 7064 | [currentCursor setOnMouseEntered: YES]; | 7064 | [currentCursor setOnMouseEntered: YES]; |
| 7065 | #endif | 7065 | #endif |
| @@ -10539,9 +10539,9 @@ nswindow_orderedIndex_sort (id w1, id w2, void *c) | |||
| 10539 | [self addCursorRect: visible cursor: [NSCursor arrowCursor]]; | 10539 | [self addCursorRect: visible cursor: [NSCursor arrowCursor]]; |
| 10540 | 10540 | ||
| 10541 | #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 101300 | 10541 | #if defined (NS_IMPL_GNUSTEP) || MAC_OS_X_VERSION_MIN_REQUIRED < 101300 |
| 10542 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 | 10542 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 |
| 10543 | if ([[NSCursor arrowCursor] respondsToSelector: | 10543 | if ([[NSCursor arrowCursor] respondsToSelector: |
| 10544 | @selector(setOnMouseEntered)]) | 10544 | @selector(setOnMouseEntered:)]) |
| 10545 | #endif | 10545 | #endif |
| 10546 | [[NSCursor arrowCursor] setOnMouseEntered: YES]; | 10546 | [[NSCursor arrowCursor] setOnMouseEntered: YES]; |
| 10547 | #endif | 10547 | #endif |