* Headers/AppKit/NSSegmentedControl.h

* Source/NSSegmentedCell.m
	* Source/NSSegmentedControl.m: Correct tabbing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25947 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-01-14 14:19:21 +00:00
parent 25386c9ae8
commit d4da065a2d
4 changed files with 15 additions and 8 deletions

View file

@ -1,3 +1,9 @@
2008-01-14 09:17-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Headers/AppKit/NSSegmentedControl.h
* Source/NSSegmentedCell.m
* Source/NSSegmentedControl.m: Correct tabbing.
2008-01-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSKeyValueBinding.m (+getBinding:forObject:): Correct bug

View file

@ -53,5 +53,6 @@
- (BOOL) isSelectedForSegment: (int)segment;
- (void) setEnabled: (BOOL)flag forSegment: (int)segment;
- (BOOL) isEnabledForSegment: (int)segment;
@end
#endif

View file

@ -348,13 +348,13 @@
{
[segment setSelected: flag];
if (flag)
{
_selected_segment = seg;
}
{
_selected_segment = seg;
}
else if (seg == _selected_segment)
{
_selected_segment = -1;
}
{
_selected_segment = -1;
}
}
}
@ -524,7 +524,7 @@
{
id segment = [_items objectAtIndex: seg];
NSFont *font = [NSFont controlContentFontOfSize:
[NSFont systemFontSize]];
[NSFont systemFontSize]];
NSString *label = [segment label];
NSSize textSize = [label sizeWithAttributes: [NSDictionary dictionary]];
NSRect textFrame = frame;

View file

@ -121,7 +121,7 @@
- (void) mouseDown: (NSEvent *)event
{
NSPoint location = [self convertPoint: [event locationInWindow]
fromView: nil];
fromView: nil];
[super mouseDown: event];
[_cell _detectHit: location];