mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 13:20:42 +00:00
Fix some coding standard errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14520 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a3ef325e5e
commit
156d1d22dd
1 changed files with 13 additions and 13 deletions
|
@ -1084,13 +1084,13 @@ static NSNotificationCenter *nc = nil;
|
||||||
{
|
{
|
||||||
/* ask delegate if it can provide a field editor */
|
/* ask delegate if it can provide a field editor */
|
||||||
if ((_delegate != anObject)
|
if ((_delegate != anObject)
|
||||||
&& [_delegate respondsToSelector:
|
&& [_delegate respondsToSelector:
|
||||||
@selector(windowWillReturnFieldEditor:toObject:)])
|
@selector(windowWillReturnFieldEditor:toObject:)])
|
||||||
{
|
{
|
||||||
NSText *editor;
|
NSText *editor;
|
||||||
|
|
||||||
editor = [_delegate windowWillReturnFieldEditor: self
|
editor = [_delegate windowWillReturnFieldEditor: self
|
||||||
toObject: anObject];
|
toObject: anObject];
|
||||||
|
|
||||||
if (editor != nil)
|
if (editor != nil)
|
||||||
{
|
{
|
||||||
|
@ -1584,7 +1584,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
if ([_delegate respondsToSelector: @selector(windowWillResize:toSize:)])
|
if ([_delegate respondsToSelector: @selector(windowWillResize:toSize:)])
|
||||||
{
|
{
|
||||||
frameRect.size = [_delegate windowWillResize: self
|
frameRect.size = [_delegate windowWillResize: self
|
||||||
toSize: frameRect.size];
|
toSize: frameRect.size];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1599,7 +1599,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
* Now we can tell the graphics context to do the actual resizing.
|
* Now we can tell the graphics context to do the actual resizing.
|
||||||
* We will recieve an event to tell us when the resize is done.
|
* We will recieve an event to tell us when the resize is done.
|
||||||
*/
|
*/
|
||||||
if(_windowNum)
|
if (_windowNum)
|
||||||
[GSServerForWindow(self) placewindow: frameRect : _windowNum];
|
[GSServerForWindow(self) placewindow: frameRect : _windowNum];
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2397,8 +2397,8 @@ resetCursorRectsForView(NSView *theView)
|
||||||
|
|
||||||
- (void) keyDown: (NSEvent*)theEvent
|
- (void) keyDown: (NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
NSString *characters = [theEvent characters];
|
NSString *characters = [theEvent characters];
|
||||||
unichar character = 0;
|
unichar character = 0;
|
||||||
|
|
||||||
if ([characters length] > 0)
|
if ([characters length] > 0)
|
||||||
{
|
{
|
||||||
|
@ -2426,19 +2426,19 @@ resetCursorRectsForView(NSView *theView)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(character == NSEnterCharacter ||
|
if (character == NSEnterCharacter
|
||||||
character == NSFormFeedCharacter ||
|
|| character == NSFormFeedCharacter
|
||||||
character == NSCarriageReturnCharacter)
|
|| character == NSCarriageReturnCharacter)
|
||||||
{
|
{
|
||||||
if(_defaultButtonCell && _f.default_button_cell_key_disabled == NO)
|
if (_defaultButtonCell && _f.default_button_cell_key_disabled == NO)
|
||||||
{
|
{
|
||||||
[_defaultButtonCell performClick:self];
|
[_defaultButtonCell performClick: self];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discard null character events such as a Shift event after a tab key
|
// Discard null character events such as a Shift event after a tab key
|
||||||
if([characters length] == 0)
|
if ([characters length] == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Try to process the event as a key equivalent
|
// Try to process the event as a key equivalent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue