mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 15:00:48 +00:00
Small corrections to recent changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25481 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4e2decacee
commit
b8a916ee31
3 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-09-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSTableView.m (-validateEditing): Set object value to
|
||||||
|
nil, when formatting the string failed.
|
||||||
|
* Source/NSActionCell.m (-intValue): Check flag in_editing before
|
||||||
|
validating the editing.
|
||||||
|
|
||||||
2007-09-12 Fred Kiefer <FredKiefer@gmx.de>
|
2007-09-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSToolbarItem.m (GSToolbarButtonCell-drawInteriorWithFrame:inView:):
|
* Source/NSToolbarItem.m (GSToolbarButtonCell-drawInteriorWithFrame:inView:):
|
||||||
|
|
|
@ -201,7 +201,7 @@ static Class controlClass;
|
||||||
*/
|
*/
|
||||||
- (int)intValue
|
- (int)intValue
|
||||||
{
|
{
|
||||||
if (_control_view)
|
if (_cell.in_editing && _control_view)
|
||||||
if ([_control_view isKindOfClass: controlClass])
|
if ([_control_view isKindOfClass: controlClass])
|
||||||
[(NSControl *)_control_view validateEditing];
|
[(NSControl *)_control_view validateEditing];
|
||||||
return [super intValue];
|
return [super intValue];
|
||||||
|
|
|
@ -3185,7 +3185,7 @@ byExtendingSelection: (BOOL)flag
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SEL sel = @selector(control:didFailToFormatString:errorDescription:);
|
SEL sel = @selector(control:didFailToFormatString:errorDescription:);
|
||||||
|
newObjectValue = nil;
|
||||||
if ([_delegate respondsToSelector: sel])
|
if ([_delegate respondsToSelector: sel])
|
||||||
{
|
{
|
||||||
validatedOK = [_delegate control: self
|
validatedOK = [_delegate control: self
|
||||||
|
@ -3210,7 +3210,7 @@ byExtendingSelection: (BOOL)flag
|
||||||
|
|
||||||
tb = [_tableColumns objectAtIndex: _editedColumn];
|
tb = [_tableColumns objectAtIndex: _editedColumn];
|
||||||
|
|
||||||
[self _setObjectValue: string
|
[self _setObjectValue: newObjectValue
|
||||||
forTableColumn: tb
|
forTableColumn: tb
|
||||||
row: _editedRow];
|
row: _editedRow];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue