mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:10:38 +00:00
Patches by Wolfgang Lux <wolfgang.lux@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25526 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6e46b25f8b
commit
a503b7d0a2
4 changed files with 15 additions and 5 deletions
|
@ -1163,6 +1163,7 @@ originalContentsURL: (NSURL *)orig
|
|||
- (void)setPrintInfo: (NSPrintInfo *)printInfo
|
||||
{
|
||||
ASSIGN(_print_info, printInfo);
|
||||
[self updateChangeCount: NSChangeDone];
|
||||
}
|
||||
|
||||
|
||||
|
@ -1195,7 +1196,6 @@ originalContentsURL: (NSURL *)orig
|
|||
&& [self shouldChangePrintInfo: printInfo])
|
||||
{
|
||||
[self setPrintInfo: printInfo];
|
||||
[self updateChangeCount: NSChangeDone];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -543,13 +543,13 @@ enum {
|
|||
- (void) okButtonClicked: (id)sender
|
||||
{
|
||||
[self writePrintInfo];
|
||||
[NSApp stopModalWithCode: NSPLOKButton];
|
||||
[NSApp stopModalWithCode: NSOKButton];
|
||||
}
|
||||
|
||||
|
||||
- (void) cancelButtonClicked: (id)sender
|
||||
{
|
||||
[NSApp stopModalWithCode: NSPLCancelButton];
|
||||
[NSApp stopModalWithCode: NSCancelButton];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -3154,7 +3154,7 @@ byExtendingSelection: (BOOL)flag
|
|||
{
|
||||
NSFormatter *formatter;
|
||||
NSString *string;
|
||||
id newObjectValue;
|
||||
id newObjectValue = nil;
|
||||
BOOL validatedOK = YES;
|
||||
|
||||
formatter = [_editedCell formatter];
|
||||
|
@ -3185,7 +3185,7 @@ byExtendingSelection: (BOOL)flag
|
|||
else
|
||||
{
|
||||
SEL sel = @selector(control:didFailToFormatString:errorDescription:);
|
||||
newObjectValue = nil;
|
||||
|
||||
if ([_delegate respondsToSelector: sel])
|
||||
{
|
||||
validatedOK = [_delegate control: self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue