From eef4ba19a6bc8bd09369c296dfbe3e8b6f9ac1f2 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Thu, 13 Mar 2008 21:45:12 +0100 Subject: [PATCH] Take care of compiler warning in MMTextView --- src/MacVim/MMTextView.h | 1 + src/MacVim/MMTextView.m | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/MacVim/MMTextView.h b/src/MacVim/MMTextView.h index 040af3011a..6a88b4ee82 100644 --- a/src/MacVim/MMTextView.h +++ b/src/MacVim/MMTextView.h @@ -40,6 +40,7 @@ fraction:(int)percent color:(NSColor *)color; - (void)hideMarkedTextField; - (void)performBatchDrawWithData:(NSData *)data; +- (void)setMouseShape:(int)shape; // // MMTextStorage methods diff --git a/src/MacVim/MMTextView.m b/src/MacVim/MMTextView.m index 6c4ac53558..8a573243a5 100644 --- a/src/MacVim/MMTextView.m +++ b/src/MacVim/MMTextView.m @@ -328,6 +328,12 @@ enum { #endif } +- (void)setMouseShape:(int)shape +{ + mouseShape = shape; + [self setCursor]; +} + - (NSFont *)font { return [(MMTextStorage*)[self textStorage] font]; @@ -1101,12 +1107,6 @@ enum { // The font panel is updated whenever the font is set. } -- (void)setMouseShape:(int)shape -{ - mouseShape = shape; - [self setCursor]; -} - @end // MMTextView