mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:50:46 +00:00
* 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
This commit is contained in:
parent
7d79f9683b
commit
b14f6d35eb
5 changed files with 16 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2009-04-07 18:43-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* 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 <FredKiefer@gmx.de>
|
2009-04-07 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSAlert.m (NSBeginAlertSheet, NSBeginCriticalAlertSheet,
|
* Source/NSAlert.m (NSBeginAlertSheet, NSBeginCriticalAlertSheet,
|
||||||
|
|
|
@ -104,6 +104,7 @@ extern NSString *NSSpeechDictionaryEntryPhonemes;
|
||||||
NSMutableArray *_dictionaries;
|
NSMutableArray *_dictionaries;
|
||||||
NSMutableDictionary *_properties;
|
NSMutableDictionary *_properties;
|
||||||
BOOL _isSpeaking;
|
BOOL _isSpeaking;
|
||||||
|
id _module;
|
||||||
}
|
}
|
||||||
|
|
||||||
// init...
|
// init...
|
||||||
|
|
|
@ -208,7 +208,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
|
|
||||||
- (void) startTimer
|
- (void) startTimer
|
||||||
{
|
{
|
||||||
NSTimeInterval time = 0.1;
|
NSTimeInterval time = 2.0;
|
||||||
_timer = [NSTimer scheduledTimerWithTimeInterval: time
|
_timer = [NSTimer scheduledTimerWithTimeInterval: time
|
||||||
target: self
|
target: self
|
||||||
selector: @selector(_timedWindowReset)
|
selector: @selector(_timedWindowReset)
|
||||||
|
@ -246,14 +246,14 @@ static NSNotificationCenter *nc = nil;
|
||||||
// [self setFrame: frame display: YES];
|
// [self setFrame: frame display: YES];
|
||||||
[self slide];
|
[self slide];
|
||||||
[self orderFront: self];
|
[self orderFront: self];
|
||||||
[self startTimer];
|
// [self startTimer];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) closeOnEdge
|
- (void) closeOnEdge
|
||||||
{
|
{
|
||||||
NSRect frame = [self frameFromParentWindowFrame];
|
NSRect frame = [self frameFromParentWindowFrame];
|
||||||
|
|
||||||
[self stopTimer];
|
// [self stopTimer];
|
||||||
[self slide];
|
[self slide];
|
||||||
[self setFrame: frame display: YES];
|
[self setFrame: frame display: YES];
|
||||||
[self orderOut: self];
|
[self orderOut: self];
|
||||||
|
@ -311,13 +311,13 @@ static NSNotificationCenter *nc = nil;
|
||||||
|
|
||||||
- (void) handleWindowClose: (NSNotification *)notification
|
- (void) handleWindowClose: (NSNotification *)notification
|
||||||
{
|
{
|
||||||
[self stopTimer];
|
// [self stopTimer];
|
||||||
[self close];
|
[self close];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) handleWindowMiniaturize: (NSNotification *)notification
|
- (void) handleWindowMiniaturize: (NSNotification *)notification
|
||||||
{
|
{
|
||||||
[self stopTimer];
|
// [self stopTimer];
|
||||||
[self close];
|
[self close];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -404,7 +404,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
[self stopTimer];
|
// [self stopTimer];
|
||||||
RELEASE(_parentWindow);
|
RELEASE(_parentWindow);
|
||||||
TEST_RELEASE(_pendingParentWindow);
|
TEST_RELEASE(_pendingParentWindow);
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
|
|
|
@ -1980,7 +1980,7 @@ static NSMapTable *mimeMap = NULL;
|
||||||
|
|
||||||
if (cmd == nil && recursion ==NO)
|
if (cmd == nil && recursion ==NO)
|
||||||
{
|
{
|
||||||
cmd = [NSTask launchPathForTool: @"gpbs"];
|
cmd = RETAIN([NSTask launchPathForTool: @"gpbs"]);
|
||||||
}
|
}
|
||||||
if (recursion == YES || cmd == nil)
|
if (recursion == YES || cmd == nil)
|
||||||
{
|
{
|
||||||
|
|
|
@ -734,6 +734,7 @@ that makes decoding and encoding compatible with the old code.
|
||||||
[aCoder encodeObject: [self textStorage] forKey: @"NSTextStorage"];
|
[aCoder encodeObject: [self textStorage] forKey: @"NSTextStorage"];
|
||||||
[aCoder encodeObject: [self textContainer] forKey: @"NSTextContainer"];
|
[aCoder encodeObject: [self textContainer] forKey: @"NSTextContainer"];
|
||||||
[aCoder encodeInt: 0 forKey: @"NSTVFlags"]; // no delegates, etc... set to zero.
|
[aCoder encodeInt: 0 forKey: @"NSTVFlags"]; // no delegates, etc... set to zero.
|
||||||
|
[self setAllowsUndo: YES];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue