mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Update pixel offset
This commit is contained in:
parent
54983cef50
commit
760b14a2cc
3 changed files with 2 additions and 25 deletions
|
@ -47,6 +47,7 @@
|
|||
|
||||
#import <AppKit/NSAccessibility.h>
|
||||
#import <AppKit/NSAccessibilityConstants.h>
|
||||
#import <AppKit/NSAccessibilityProtocols.h>
|
||||
#import <AppKit/NSActionCell.h>
|
||||
#import <AppKit/NSAnimationContext.h>
|
||||
#import <AppKit/NSAppearance.h>
|
||||
|
|
|
@ -900,7 +900,7 @@
|
|||
NSBezierPath *oval;
|
||||
NSRect rect = NSZeroRect;
|
||||
CGFloat w = (frame.size.width / 2) - 2;
|
||||
CGFloat h = frame.size.height - 5;
|
||||
CGFloat h = frame.size.height - 6;
|
||||
CGFloat y = frame.origin.y + 2;
|
||||
CGFloat radius = frame.size.height / 2.0;
|
||||
|
||||
|
|
|
@ -2804,7 +2804,6 @@ didStartElement: (NSString*)elementName
|
|||
else if ([object respondsToSelector: @selector(setHeaderToolTip:)])
|
||||
[object setHeaderToolTip: [element attributeForKey: @"toolTip"]];
|
||||
}
|
||||
|
||||
// Process IB runtime attributes for element...
|
||||
// Ensure we don't process the placeholders...
|
||||
if ([element elementForKey: @"userDefinedRuntimeAttributes"] &&
|
||||
|
@ -2985,29 +2984,6 @@ didStartElement: (NSString*)elementName
|
|||
return object;
|
||||
}
|
||||
|
||||
- (NSInteger) decodeIntegerForKey: (NSString *)key
|
||||
{
|
||||
NSInteger i = 0;
|
||||
|
||||
if ([self containsValueForKey: key])
|
||||
{
|
||||
i = [super decodeIntegerForKey: key];
|
||||
}
|
||||
else if ([XmlKeyToDecoderSelectorMap objectForKey: key])
|
||||
{
|
||||
SEL selector = NSSelectorFromString([XmlKeyToDecoderSelectorMap objectForKey: key]);
|
||||
i = [[self performSelector: selector withObject: currentElement] integerValue];
|
||||
}
|
||||
#if DEBUG_XIB5
|
||||
else
|
||||
{
|
||||
NSWarnMLog(@"no integer for key: %@", key);
|
||||
}
|
||||
#endif
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
- (BOOL) decodeBoolForKey: (NSString *)key
|
||||
{
|
||||
BOOL flag = NO;
|
||||
|
|
Loading…
Reference in a new issue