From b14f6d35eba01a186b9ad60b5c0b58d1daaf5827 Mon Sep 17 00:00:00 2001 From: gcasa Date: Tue, 7 Apr 2009 22:52:52 +0000 Subject: [PATCH] * Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar. * Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU. * Source/NSPasteboard.m: Retain the path since it's autoreleased. * Source/NSTextView.m: Set the textview to allow undos by default. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28186 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Headers/AppKit/NSSpeechSynthesizer.h | 1 + Source/NSDrawer.m | 12 ++++++------ Source/NSPasteboard.m | 2 +- Source/NSTextView.m | 1 + 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d1030d659..33ab33f5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-04-07 18:43-EDT Gregory John Casamento + + * Headers/AppKit/NSSpeechSynthesizer.h: Added _module ivar. + * Source/NSDrawer.m: Don't set the timer since it eats a lot of CPU. + * Source/NSPasteboard.m: Retain the path since it's autoreleased. + * Source/NSTextView.m: Set the textview to allow undos by default. + 2009-04-07 Fred Kiefer * Source/NSAlert.m (NSBeginAlertSheet, NSBeginCriticalAlertSheet, diff --git a/Headers/AppKit/NSSpeechSynthesizer.h b/Headers/AppKit/NSSpeechSynthesizer.h index a70fa6a4f..949900b31 100644 --- a/Headers/AppKit/NSSpeechSynthesizer.h +++ b/Headers/AppKit/NSSpeechSynthesizer.h @@ -104,6 +104,7 @@ extern NSString *NSSpeechDictionaryEntryPhonemes; NSMutableArray *_dictionaries; NSMutableDictionary *_properties; BOOL _isSpeaking; + id _module; } // init... diff --git a/Source/NSDrawer.m b/Source/NSDrawer.m index 7f5563aa1..0dae94d38 100644 --- a/Source/NSDrawer.m +++ b/Source/NSDrawer.m @@ -208,7 +208,7 @@ static NSNotificationCenter *nc = nil; - (void) startTimer { - NSTimeInterval time = 0.1; + NSTimeInterval time = 2.0; _timer = [NSTimer scheduledTimerWithTimeInterval: time target: self selector: @selector(_timedWindowReset) @@ -246,14 +246,14 @@ static NSNotificationCenter *nc = nil; // [self setFrame: frame display: YES]; [self slide]; [self orderFront: self]; - [self startTimer]; + // [self startTimer]; } - (void) closeOnEdge { NSRect frame = [self frameFromParentWindowFrame]; - [self stopTimer]; + // [self stopTimer]; [self slide]; [self setFrame: frame display: YES]; [self orderOut: self]; @@ -311,13 +311,13 @@ static NSNotificationCenter *nc = nil; - (void) handleWindowClose: (NSNotification *)notification { - [self stopTimer]; + // [self stopTimer]; [self close]; } - (void) handleWindowMiniaturize: (NSNotification *)notification { - [self stopTimer]; + // [self stopTimer]; [self close]; } @@ -404,7 +404,7 @@ static NSNotificationCenter *nc = nil; - (void) dealloc { - [self stopTimer]; + // [self stopTimer]; RELEASE(_parentWindow); TEST_RELEASE(_pendingParentWindow); [super dealloc]; diff --git a/Source/NSPasteboard.m b/Source/NSPasteboard.m index 8589ed11d..1593d7c15 100644 --- a/Source/NSPasteboard.m +++ b/Source/NSPasteboard.m @@ -1980,7 +1980,7 @@ static NSMapTable *mimeMap = NULL; if (cmd == nil && recursion ==NO) { - cmd = [NSTask launchPathForTool: @"gpbs"]; + cmd = RETAIN([NSTask launchPathForTool: @"gpbs"]); } if (recursion == YES || cmd == nil) { diff --git a/Source/NSTextView.m b/Source/NSTextView.m index cc76f9631..2f07e4242 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -734,6 +734,7 @@ that makes decoding and encoding compatible with the old code. [aCoder encodeObject: [self textStorage] forKey: @"NSTextStorage"]; [aCoder encodeObject: [self textContainer] forKey: @"NSTextContainer"]; [aCoder encodeInt: 0 forKey: @"NSTVFlags"]; // no delegates, etc... set to zero. + [self setAllowsUndo: YES]; } else {