mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Added include for NSScrollView to avoid compiler warning.
[_blink] don't call [NSApp updateWindows], just redisplay our window. [mouseDown:] replaces all [_window flushWindow] with [self displayIfNeeded]. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11292 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4796b2e906
commit
6f2e0bf7a7
1 changed files with 6 additions and 5 deletions
|
@ -53,6 +53,7 @@
|
|||
#include <AppKit/NSTextView.h>
|
||||
#include <AppKit/NSParagraphStyle.h>
|
||||
#include <AppKit/NSRulerView.h>
|
||||
#include <AppKit/NSScrollView.h>
|
||||
#include <AppKit/NSPasteboard.h>
|
||||
#include <AppKit/NSSpellChecker.h>
|
||||
#include <AppKit/NSControl.h>
|
||||
|
@ -2190,7 +2191,7 @@ afterString in order over charRange. */
|
|||
stillSelecting: YES];
|
||||
|
||||
/* Do an immediate redisplay for visual feedback */
|
||||
[_window flushWindow]; /* FIXME: This doesn't work while it should ! */
|
||||
[self displayIfNeeded];
|
||||
|
||||
/* Enter modal loop tracking the mouse */
|
||||
|
||||
|
@ -2218,7 +2219,7 @@ afterString in order over charRange. */
|
|||
}
|
||||
|
||||
/* Do an immediate redisplay for visual feedback */
|
||||
[_window flushWindow];
|
||||
[self displayIfNeeded];
|
||||
}
|
||||
|
||||
NSDebugLog(@"chosenRange. location = %d, length = %d\n",
|
||||
|
@ -2228,7 +2229,7 @@ afterString in order over charRange. */
|
|||
stillSelecting: NO];
|
||||
|
||||
/* Ahm - this shouldn't really be needed but... */
|
||||
[_window flushWindow];
|
||||
[self displayIfNeeded];
|
||||
|
||||
/* Remember granularity till a new selection destroys the memory */
|
||||
[self setSelectionGranularity: granularity];
|
||||
|
@ -3260,8 +3261,8 @@ other than copy/paste or dragging. */
|
|||
avoidAdditionalLayout: YES];
|
||||
/* Because we are called by a timer which is independent of any
|
||||
event processing in the gui runloop, we need to manually update
|
||||
the windows. */
|
||||
[NSApp updateWindows];
|
||||
the window. */
|
||||
[self displayIfNeeded];
|
||||
}
|
||||
|
||||
+ (NSDictionary*) defaultTypingAttributes
|
||||
|
|
Loading…
Reference in a new issue